YouTube Icon

Interview Questions.

Top 100+ Saltstack Interview Questions And Answers - Jun 01, 2020

fluid

Top 100+ Saltstack Interview Questions And Answers

Question 1. How Will You Deploy A File To A Minion With The Accession Of Other Minions?

Answer :

Although SaltStack doesn’t aid the get admission to control, there are tricks by using which you can in all likelihood accomplish that. With the help of Salt 2015.5.0, thefile_tree external pillar, 

you could proceed. The Salt 2015.5.0 version gives the allowance to document contents to load as Pillar facts. One of the examples has been stated under by means of which you may 

really installation a record to a specific minion with out the interruption of different minions.

Check out the command proper underneath:

/and so forth/my__super/secret_file::

document.Managed::

– mode:: six hundred

– group:: mystery

– person:: secret

– contents__pillar::secret__files::my__super__secret__file.

Question 2. State The Finest Way To Restart A Salt Minion With Salt After The Upgrade?

Answer :

The great manner to continue with the updating of salt minion package is noted right here. Proceeding with the update would require the restarting of the carrier of the salt minion. But amidst a country run, restarting the provider would interrupt the Minion’s process of strolling states. It could additionally return the outcomes to the grasp. The maximum not unusual way to continue is to agenda the restarting of the carrier with the help of master-much less mode. The mode will allow the Minion to Master the connection and file the effects to Master. The carrier will be restarting within the history.

Python Interview Questions
Question 3. If You Find A Bug In Salt, Then What Would You Do?

Answer :

Both the mailing listing of the salt users and the IRC channel of salt are helpful resources. This is because they have got the capability of confirming problems as well as troubleshoots to resolve the respective issues. When you discover a trojan horse in Salt, you would should follow the unique instructions and report the worm.

Question 4. Why Are The Custom Modules/ States/and so forth Unavailable On The Minions?

Answer :

Custom modules are generally synced to the Minions at the same time as the saltutil.Sync_modules or the saltutil.Sync_allcommand is run. The custom modules are even synced with the nation.Observe even as there’s no command or arguments. Hence, custom states get synced to the Minions even as the saltutil.Sync_states,state.Follow, or saltutil.Syncis run.

Python Tutorial
Question five. On The Firewall Option, What Port You Are You Supposed To Open?

Answer :

The Minions are to be related to Master on TCP ports 4506 as well as 4505. They don’t actually need any inbound port open.

Puppet (software program) Interview Questions
Question 6. Suppose You Are Getting Error When Trying To Manage Packages/services. What Will You Do?

Answer :

SaltStack helps in detecting the working machine of the Minion and additionally assigns the ideal service or package that's based at the respective detection. 

Nevertheless, specific OS derivatives and custom spins can not stumble on the bundle of provider. In case you are getting the aforementioned errors, then you need to open an trouble on the respective tracker with the assist of the subsequent commands:

saltgrains.Gadgets grepos

The respective contents of the /and so forth/lsb-release, if it's been supplied on Minion.

Question 7. Why Is Saltstack Termed As The Open-supply Software?

Answer :

From a standpoint of a student, Salt (or also known as SaltStack) is termed as an open-supply software due to many motives. Mentioned beneath are few of them which might be given in a factor-clever way.
First and most important, Salt or SaltStack is a standalone product which is available for customers as a free to apply product.
Secondly, SaltStack has been developed with the contributions which can be well-known from the particular community for the mission’s boom.
The 0.33 maximum essential factor is, Salt doesn’t have any of its own capabilities which can be responsible for restricting separate products proprietary.
Fourthly, because of the license of Apache 2.Zero, the software program is able to be used as the muse for a proprietary device or maybe for a task.
Finally, the APIs of the software program are not simply documented but even open. These had been availed for everybody’s utilization.
Puppet (software program) Tutorial wxPython Interview Questions
Question eight. Can You Term Saltstack As Open-center?

Answer :

You cannot term SaltStack as open-middle. It is entirely dedicated and dedicated to being an open-source software program. The software has been evolved underneath the license of Apache 2.Zero.  Hence it's far allowed to be used in both proprietary as well as open tasks.

Question 9. Explain Any Two Advantages Of Saltstack?

Answer :

There are multiple beneficial advantages of using this open-supply software program. But one might also note inside the very beginning (in advance of mentioning the pointwise blessings of the use of SaltStack) that SaltStack is likewise termed as the faraway execution engine. Now you could take a look at the under-cited factor-smart statistics that shed lighting fixtures on the pros and cons of the use of SaltStack.

Pros –

These are the two professionals (or the advantages) of using SaltStack as noted underneath:

Not best is it modular, but additionally occurs to be event-driven software program which ensures that each one the IT additives are capable of retaining the target country under the manage of the software program.
SaltStack can be set up in the tiered configuration with the assist of 1 minion that is able to controlling others on the way to load balancing in addition to boast redundancy.
Ansible (software) Interview Questions
Question 10. Can Salt Determine The Minion’s Id?

Answer :

 Salt can clearly determine the ID of the Minion.

WxPython Tutorial
Question eleven. How Does Salt Determine The Id Of The Minion?

Answer :

The method is quite simple and seamless. By the help of the hostname, Salt may be capable of determine the ID of the minion.

Unix/Linux Interview Questions
Question 12. How To Avail Module X When Shell Command Is Installed?

Answer :

Apparently, it's miles a PATH problem. You will should realize that the module requires custom-compiling the software program, within the first actual location. If you haven’t gone via it, then you definitely could have to do it at once.

The RHEL/CentOS/and so on happens to be a selected overriding of users’ course inside the /and so on/init.D report that sets to sbin:/usr/sbin:/usr/bin. It for that reason makes the installing of the software to the /usr/bin which isn't to be had to the software at the same time as beginning the use of the Minion.The 2014.1.0 model of Salt seeming is about to be higher than and provide extra superior solutions for the PATH-based totally troubles. There’s an alternative way – you may additionally create a symbolic link in the PATH by getting keep of the nation of report.Symlink.

–/usr/bin/foo:
– file.Symlink:
–target: /usr_local/bin/foo.
Python Interview Questions
Question thirteen. Can You Do The Minion Upgrade Without Automatically Restarting?

Answer :

Yes, you can do the Minion improve without automatically restarting. But it requires a step-through-step procedure.

Windows 10 Tutorial
Question 14. Can You Restart The Salt Minion By Using Remote Executions?

Answer :

you can truly restart the Salt Minion via the usage of the Remote Executions.

Question 15. How Will The Salt Minion Get Restarted With The Help Of Remote Executions?

Answer :

You will have to observe the below furnished commands as a way to restart the Minion through the usage of Remote Executions.

Salt– C 'now not G@ekenel:Windowscmd.Run-bg –call/restart the sal tminion

salt– G kenel-Windows cmd–run.Bg 'C:saltsalt.Bat --local-restart salt-minion'.

Osi Model Interview Questions
Question 16. Can Salt Minion Get Restarted With The Help Of Using States?

Answer :

 Yes, you can honestly restart the Salt Minion with the assist of States.

Unix/Linux Tutorial
Question 17. How Will You Be Able To Restart The Salt Minion With The Help Of States?

Answer :

The technique of restarting the Salt Minion is straightforward. By the use of States, it could be carried forward effectively. You should apply workaround in an effort to restart the Salt Minion in a handy and a reliable way. Mentioned below is an example that works on each Microsoft’s Windows working systems in addition to UNIX-like. Check out the command underneath.

Restarting Salt Minion:

cmd.Run:

%- else %

- call: 'salt-call -local provider/restart salt.Minion'

%- if grains-['kernel']=== Windows %

- call: 'C:salt:salt-call.Bat --local provider-restart: restart salt-minion'

%- endif %

  - pkg: Upgrade the Salt Minion

- on_changes:

  - bg: True.

Python Automation Testing Interview Questions
Question 18. What Is The Other Alternative To Restart Salt Minion With States?

Answer :

You can restart Salt Minion with the aid of the use of States and that too in an opportunity way. Mentioned under are the commands which you want to follow therefore. Note that it is extra advanced to improve Salt’s legacy model.

The alternative way to restart Salt Minion:

cmd.Run::

%- if grains[‘’kernel’’] == ‘Windows’’%

- call: ‘start powershell ‘Restart-Service -Name salt-minion’’

%- else %

- call-

:exec zero>&- # close stdout

:exec 1>&- # near stdin

:exec 2>&- # close stderrr

:nohup salt-caall --nearby service.Rstart salt-minion &

%- - endif%.

Puppet (software) Interview Questions
Question 19. Suppose Your Script Is Running Each Time You Use The State.Observe. What Would You Do?

Answer :

If the script is strolling on every occasion even as the use of the state_apply, then you definitely need to study the distinction between cmd.Wait and cmd.Run. The aforementioned hassle handiest occurs while you use the cmd.Run instead of implementing the cmd.Wait. [Quick Note: The cmd.Run will run properly most effective while a trade happens within the watching country. On the opposite, the cmd.Run will run the corresponding command every and each time.

Chef (software program) Tutorial
Question 20. Why The Value For The Grain Changed Itself?

Answer :

The reason why the fee for the grain modified itself is due to some motives. It is commonly the result of the upstream amendment inside the distribution of a selected working system that gets rid of or replaces matters Salt uses so as to hit upon a grain. When it happens, it's miles lucky. Using Salt with a command could be suitable to fix this sort of troubles.

Check out the instructions right below:

salt -G ‘grain:Changed’Value' grains.Setvals ‘”’'grain':: 'OldValue'

[Note: Replace the grain >Changed_Value> and Old_Value with a grain as well as values you need to make a change. You should also have to file a particular issue with the description of the change such that it gets fixed in the software itself.]

Chef (software) Interview Questions
Question 21. Explain Any Two Disadvantages Of Using Saltstack?

Answer :

These are the 2 cons (or the disadvantages) of the usage of SaltStack as cited under:

Salt uses and is written in Python. Talking approximately Python, it is hooked up in almost all the Linux structures.
SaltStack doesn’t include characteristic-rich GUI. Therefore, customers accomplish their assignment with the help of the command-line tool as a consequence.




CFG