Skip to content

Commit 2aea02f

Browse files
Update Puppet_Intro_Installation.txt
1 parent 58bc5db commit 2aea02f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Puppet_Intro_Installation.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,5 +201,21 @@ By default the running interval on the client is 30 mins. but we can change it b
201201
server=puppet
202202
runinterval=1m
203203

204+
Classes
205+
206+
in site.pp
207+
#---Create testuser
208+
class addusers
209+
{
210+
user { 'testuser':
211+
ensure=>present
212+
}
213+
}
214+
node default {
215+
class { addusers:}
216+
}
217+
--------------
218+
219+
204220
Modules:-
205221
it is the collection of manifest with data( such as facts files and templates) and they have a specific directory structure. Modules are useful to organize puppet code because they allow you to split the code in multiple manifests.It is considered to be best practice to use modules to organize manifests.

0 commit comments

Comments
 (0)