You created a custom logging function to log a type that excludes the sensitive data. This has nothing to do with the language or the logging package whatsoever. This can be done in any language.
@Code-MilitiaАй бұрын
You’re right, I should have stated that this can be done in other packages. However, I wasn’t making a comparison between packages or languages.
@najmehforoozani2 ай бұрын
Very informative... many thanks
@Code-Militia2 ай бұрын
Glad it was helpful!
@najmehforoozani2 ай бұрын
Amazing and informative
@Code-Militia2 ай бұрын
Glad you liked it
@najmehforoozani2 ай бұрын
Thank you for explaining so beautifully
@Code-Militia2 ай бұрын
My pleasure 😊
@casualgamingz1532 ай бұрын
Try on lists lil bro
@SidYoung-au3 ай бұрын
Events with a slash on the end are always a gotcha!
@yansongguo83543 ай бұрын
It seems fix the dependency problem using output variables
@Code-Militia3 ай бұрын
Are you referring to terraform outputs? If so, that’s always been there. The issue is that if the dependent stack hasn’t been deployed, terraform doesn’t attempt to deploy it and thus fails.
@VeeWebCode3 ай бұрын
need come mic imporovements. same volumne I watch other videos much clear
@Code-Militia3 ай бұрын
I will test it and make improvements. Thank you!
@VeeWebCode3 ай бұрын
just the vo ulume higher and it's good@@Code-Militia
@VeeWebCode4 ай бұрын
big fan sir
@Code-Militia4 ай бұрын
Thank you!
@jonasprintzen95084 ай бұрын
Sound isn't brilliant, consistent levels should be a piece of cake...
@Code-Militia4 ай бұрын
Thank you for that input. This video was recorded a long time ago when my equipment wasn’t up to par.
@ayberkdikcinar97844 ай бұрын
Where should I install the inotify? To the master or the minion or both? And also I wonder why centos is not working. I tried with centos master and ubuntu minion. It also did not worked! beacon added correctly to the pillar. However, it did not fire an event to the eventbus at all. Is that all about having centos master?
@Code-Militia4 ай бұрын
Inotify should be on the minion to notify the master.
@Code-Militia4 ай бұрын
It may be centos, try it on vms and see if you can reproduce the issue. If you can, try with both Ubuntu
@ayberkdikcinar97845 ай бұрын
Thank you Ali, I approciate for your work here :)
@Code-Militia4 ай бұрын
My pleasure!
@businessgoose86057 ай бұрын
Im installing on ubuntu vm in virtual box. I pip installed salt, i created the directories needed. I ran salt-minion -d Then Salt-key And there are no unregistered keys. But the /etc/salt/pki/{master, minion} dirs were created and the ../minion_id was created with salt as the obly entry. My hostname is salt. Any ideas why the keys are not listed?
@user-wk6mb7mw3g8 ай бұрын
Python does have pointers. Try your simple demonstration on "lists".
@NotFamousReal10 ай бұрын
Really appreciate this
@988862240011 ай бұрын
can you please also tell about Salt-Formula? is it same as salt-state?
@Code-Militia11 ай бұрын
Sure thing, to give you an idea a salt formula is a template yaml file with conditional logic. You must provide parameters to meet conditions on the formula to apply. Think about a formula that can be applied to red hat and Debian, they both use different package managers but a formula can pick up what OS type is calling it based on input value or grain lookup.
@mukut5ul Жыл бұрын
How to assign custom grain to minion
@MsNegh Жыл бұрын
Thank you for the Great Training Akhter! I got an error: "ERROR: Minions returned with non-zero exit code". Couldn't find the reason by searching. I was wondering if you could put the repo here so I can compare where did I miss something please?
@Code-Militia Жыл бұрын
Unfortunately I do not have the repo anymore. I would look at /var/log/minion
@cncfreez Жыл бұрын
NIce informative video, thanks! But one question where are the other grains comming from? And can you also modify those? And how does the refresh works?
@ash3rr2 жыл бұрын
Why do we need to install Node
@Code-Militia4 ай бұрын
Apologies for the very late reply. Pulumi may no longer need node but if you use pulumi with typescript, node will be needed
@Seanofthemurray2 жыл бұрын
Keep it up you prince. You're my favorite tutorial I've found.
@warrenharris49532 жыл бұрын
Great content, but the way you shared the entire screen made a lot of the text unreadable. I think that in the future have a more narrow window and share that.
@Code-Militia2 жыл бұрын
Great feedback, thank you!
@nikitashkaruba6102 жыл бұрын
Half of the tutorial is off screen :D But it helped, so thank you :)
@Code-Militia2 жыл бұрын
Apologies for the poor editing skills, glad it helped.
@matthewbrown45722 жыл бұрын
After I rename my minion in the minion_id file and run salt-minion -d, it does not show up under accepted keys. Any idea what the problem might be?
@Antebios2 жыл бұрын
You were in the wrong branch!
@Code-Militia2 жыл бұрын
You may have been correct, I should have used the same shell which tells me the branch name on the machine as well.
@PriyankRupareliya2 жыл бұрын
Very helpful video ! I'm actually trying to reorganize the default grains generated on the minions by adding a custom grain under which, I only list the important default grains that I frequently use. Since I'm not a python pro, can you tell me how to obtain the entire dictionary of existing grains in the python code ? Thanks
@Alireza134882 жыл бұрын
Very good video, but It is also worth mentioning, pointers do exist for arrays or any other mutable object in python
@Code-Militia3 ай бұрын
Thank you for the update! Will correct myself in a future video.
@basictech90693 жыл бұрын
made a 5 min video to tell python dosent have pointers?? seriously???
@arjunmehta28532 жыл бұрын
It's for people who don't even know what pointers are.
@rightangleoverseas23913 жыл бұрын
getting Beacon Inotify configuration invalid, not running - Trying to debug since ages!
@UPPERKEES Жыл бұрын
Ages!
@omkaracharya94643 жыл бұрын
Where are other videos on pulumi ? There are only 2
@drac88543 жыл бұрын
Is there a way to get value from id For example lets say i do x=10 y=id(x) Now how can i print value of y because now if i print value of y it will be an integer which is memory I want to print whats at that memory Like address(&) in c
@Code-Militia3 жыл бұрын
While you can loop through globals().values() to get the ID and return the value, it's not best practice because there are too many variables to go through and your app could be slowed down by a lot. >>> x = 10 >>> xAddress = id(x) >>> [y for y in globals().values() if id(y)==xAddress] [10, 10] >>>
@frodobaggins39742 жыл бұрын
Without checking first whether this particular ID exists? No and there are good reasons for not doing it. If Python interpreter tried to access memory address that was not allocated to it in the first place (which is likely the case), it would have caused a segmentation fault and the interpreter would be unconditionally killed by the operating system (SIGSEGV). Programs cannot read memory that has not been allocated to them... If you're interested in further explanation read about dereferencing null pointers in C - as this is what you somewhat try to achieve.
@Mogwai883 жыл бұрын
What color scheme are you using here?
@Code-Militia3 жыл бұрын
I use fish shell with sushi color scheme, this particular set of colors is from VSCode shell with bpython running, and that’s not a typo.
@dhruvmalik63 жыл бұрын
Can you add on how to use gitfs and git ext_pillar modules?
@romanbokelman11073 жыл бұрын
You should have way more views
@Code-Militia3 жыл бұрын
Thank you. That made my day
@jordanhanna68843 жыл бұрын
This video was hard to follow, especially as an intro to states. I think itd be better if a lot of this was done off camera and instead you just explain the concepts while showing the completed example. The really only useful part for me was the last minute.
@thatlazyburger98553 жыл бұрын
Thanks a lot. I have a test tomorrow and this is gonna help big time. Ty
@shambhav95343 жыл бұрын
So, you just trolled me? I wanted to use pointers in python, I knew it wasn't possible, then I saw the title, got so happy, then... all went down... And btw C has pointers, that's stupid of you to be uncertain, C++ is just C but more OOP and with modern syntax, and more tools, only more tools, not like C++ has any more features.
@Code-Militia3 жыл бұрын
You’re right, that was an unprofessional jerk move by me. I’ll put a troll tag
@amritlohia8240 Жыл бұрын
Actually it *is* possible, through the ctypes module. See e.g. here: kzbin.info/www/bejne/opTPc2WPZ5ehl9E.
@komalthecoolk3 жыл бұрын
While I reallly appreciate the free content, how do you expect us to read any of the text you're showing on screen on any device that doesn't have at least a 20 inch monitor?
@Code-Militia3 жыл бұрын
How big is the device you’re using to read the text? Also if you’re on the saltstack playlist, there is a saltstack 2.0 playlist which solves much of those issues. I’m also getting ready to release new terraform videos which includes hcl 0.13. I may reach out to you to make sure it’s clearly visible in all devices
@komalthecoolk3 жыл бұрын
the dots in whitespaces in your editor is super confusing. I was trying to figure out what character that was.
@Code-Militia3 жыл бұрын
Sorry about that. I'll change my theme
@frodobaggins39743 жыл бұрын
Hehe, try this: a = [1, 2, 3] b = a a.append(4) print(b) Surprised? :)
@Code-Militia3 жыл бұрын
I will try this out and figure out why the result is the result. Thank you so much!
@predator1011X3 жыл бұрын
@@Code-Militia i would like to know this too
@frodobaggins39743 жыл бұрын
@@predator1011X Short answer: memory management. Lists are mutable objects, once you create a list, and make a link between the variable name (also an object in Python!) and the list object, the link holds even if you change the content of the linked object (a list in this case). Same goes for sets, dicts and user-created classes. It's rooted in the 'everything is an object' ideology. So if you want to mimic a pointer behaviour in Python, contain the variable value in a list. Saying this, in C++ we use pointers for speed and for smarter memory management. In Python you will not see any of these benefits, as the list is stored as an object anyway, not a simple addressed heap value. But yeah, it's there, and it works - if you need it.
@ranitchatterjee55523 жыл бұрын
No, xD!!
@exoticme4760 Жыл бұрын
PIN THIS
@rahulgupta-km8qr3 жыл бұрын
Awesome video
@Code-Militia3 жыл бұрын
Thank you!
@richardmaduka47473 жыл бұрын
Great tutorial.
@Code-Militia3 жыл бұрын
Thank you!
@raayaansahu25253 жыл бұрын
ahaha lovely kinda hilarious though
@Code-Militia3 жыл бұрын
Finally, someone finds it funny 😄
@BigBawsBoss3 жыл бұрын
Hey Mo, I am following your tutorial but my minion is not able to communicate with the master it seems. I have set the security group on the master to open up 4505 and 4506 on TCP, is there anything else you had to do to get this to work? When I run "nc -v *ipaddress* 4505" on the minion it times out. Thanks!
@Code-Militia3 жыл бұрын
You also need to open 4505 and 4506 on the minion as well.
@ArandomNutter3 жыл бұрын
Did you ever do a video on having this with something like Jenkins for unit testing?
@Code-Militia3 жыл бұрын
I did not. Pretty good idea though. I was gonna make cicd a playlist of its own. Might add it to the new salt playlist now.
@changeDgame473 жыл бұрын
whatever happened to font size, great content but so hard to comprehend
@Code-Militia3 жыл бұрын
I do apologize for it, this is why I started the Learning Saltstack 2.0 playlist. This one is still up for people who want to refer back to it.
@abhilashsandupatla26513 жыл бұрын
HI , I have setup master and minion, and accepted the keys , and tested the connection also, its fine . But, when am running the state file in the video, It is giving error . [WARNING ] Failed to open log file, do you have permission to write to /var/log/salt/master? Salt request timed out. The master is not responding. You may need to run your command with `--async` in order to bypass the congested event bus. With `--async`, the CLI tool will print the job id (jid) and exit immediately without listening for responses. You can then use `salt-run jobs.lookup_jid` to look up the results of the job in the job cache later.
@Code-Militia3 жыл бұрын
Are you doing this locally? If not make sure your firewall allow port 4505 and 4506
@gzoechi3 жыл бұрын
Looks good so far but text is too small
@Code-Militia3 жыл бұрын
Thanks, so far this is the main reason I started a new playlist learning saltstack 2.0z. Addressing some of the editing.
@darshanshivashankar92293 жыл бұрын
Perfect understanding!! Please upload more videos about the reactor and returners.
@Code-Militia3 жыл бұрын
Will do, thanks.
@rijeshparambath38103 жыл бұрын
Excellent tutorials Akhter. Thank you very much for the effort