The first command for creating the connection is
bootstrapping.
Downloaded the starter kit from the hosted chef.
If you download the starter kit for the second time (the
.pem in the host will be changed and it will create problems).
note:once you downloaded the starter kit,It may halt your
existing connections.
Steps(This is on
windows machine)
1 Install the Chef DK (Google it).
2 Install visual studio code/Atom/Sublime
(Every dev activity will be on workstation).
1 All the practice is down from the
powershell.
How to
download visual studio code in Mac?
h https://code.visualstudio.com/download
(we have to install the extensions to get the required chef plugins).
We have to
tune that Editor (Visual studio code).
Boiler
plate means something which editor gives.
We
have to take the path from the local machine.
it
gives the autogenerated script.
( something
like a basic boilerplate).
user 'user_name do
comment 'comment'
uid 'uid'
gid 'gid'
home 'home_folder'
shell 'shell'
password 'password'
action :create
end
These are all the resources,for
some of the resources we get the help like this.
Note:
These kind of editors
will help us to reduce the Dev time.
We have to break our
file in to multiple recipe files.
we can right click
and create a new file,which is called as test.rb
No comments:
Post a Comment