Skip to content

Commit 699c432

Browse files
Update Puppet_Intro_Installation.txt
1 parent 5a1f724 commit 699c432

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

Puppet_Intro_Installation.txt

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ $ sudo apt-get install puppet-master
8989
$ sudo systemctl status puppet-master.service
9090

9191
Add the following lines in the puppet-master configuration file
92-
Next open port 8140 on the Puppet Masters firewall
92+
Next open port 8140 on the Puppet Masters firewall
9393
$ sudo nano /etc/default/puppet-master
9494
JAVA_ARGS="-Xms512m Xmx512m"
9595
$ sudo systemctl restart puppet-master
@@ -111,7 +111,7 @@ $ sudo systemctl enable puppet
111111

112112

113113
Step 3: Make changes to the hosts file which exists in /etc/hosts. And add the Puppet
114-
Master IP address along with the name puppet
114+
Master IP address along with the name puppet
115115

116116
$ sudo nano /etc/hosts
117117

@@ -154,4 +154,17 @@ mode => '0644',
154154
}
155155

156156
Goto client machine and run the command
157-
puppet agent --test
157+
puppet agent --test
158+
159+
-----------Find the resource types
160+
puppet resource --types
161+
puppet resource file /tmp/1.txt
162+
163+
----To set the running interval on client machine
164+
By default the running interval on the client is 30 mins. but we can change it by changing /etc/puppet/puppet.conf
165+
[agent]
166+
server=puppet
167+
runinterval=1m
168+
169+
Modules:-
170+
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)