We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 699c432 commit 58bc5dbCopy full SHA for 58bc5db
Puppet_Intro_Installation.txt
@@ -27,6 +27,41 @@ Syntax:
27
argument => value,
28
otherarg => value
29
}
30
+
31
+node default {
32
+$mypackages = [ 'apache2', 'sudo', 'screen' ]
33
34
+package { $mypackages: ensure => 'installed' }
35
+}
36
37
38
39
+# creating the directory called test
40
+file{ '/tmp/test':
41
+ ensure => 'directory'
42
43
44
45
46
47
48
49
50
+file{ '/tmp/test1':
51
+ ensure => 'directory',
52
+ owner => 'root',
53
+ group => 'root',
54
+ mode => '0777',
55
56
57
58
59
60
61
+# remove the given file
62
+tidy { '/tmp/3.txt': }
63
64
65
eg:
66
Ex1 Verify nginx is installed
67
0 commit comments