1 | import "classes/*.pp" |
---|
2 | import "common/*.pp" |
---|
3 | import "/etc/puppet/modules/module-svn/manifests/*.pp" |
---|
4 | |
---|
5 | import "node-prod.pp" |
---|
6 | |
---|
7 | # Create "/tmp/testfile" if it doesn't exist. |
---|
8 | class test_class { |
---|
9 | file { "/tmp/testfile": |
---|
10 | ensure => present, |
---|
11 | mode => 644, |
---|
12 | owner => root, |
---|
13 | group => root |
---|
14 | } |
---|
15 | } |
---|
16 | |
---|
17 | # tell puppet on which client to run the class |
---|
18 | node peon { |
---|
19 | include test_class |
---|
20 | include estacion-de-trabajo |
---|
21 | } |
---|
22 | |
---|
23 | node ardizzone { |
---|
24 | include test_class |
---|
25 | include audiostreamer |
---|
26 | |
---|
27 | debproxy::activateclient { dist: |
---|
28 | debproxyhost => "debproxy", |
---|
29 | } |
---|
30 | |
---|
31 | } |
---|
32 | |
---|
33 | node walsh { |
---|
34 | include test_class |
---|
35 | |
---|
36 | cronapt::mailon-mailto { dist: |
---|
37 | mailon => "upgrade", |
---|
38 | mailto => "seguridad@localhost" |
---|
39 | } |
---|
40 | |
---|
41 | include estacion-de-trabajo |
---|
42 | |
---|
43 | ltsp::buildclient { dist: |
---|
44 | mirror => "http://debproxy:3142/ar.archive.ubuntu.com/ubuntu", |
---|
45 | securitymirror => "http://debproxy:3142/security.ubuntu.com" |
---|
46 | } |
---|
47 | |
---|
48 | include ltsp::tftpdhpa::activate |
---|
49 | |
---|
50 | include matrix::ldapauthclient |
---|
51 | |
---|
52 | # mount samba shared |
---|
53 | package { |
---|
54 | [ "smbfs" ]: ensure => installed; |
---|
55 | } |
---|
56 | |
---|
57 | file { ["/home"]: |
---|
58 | ensure => directory, |
---|
59 | owner => "root", group => "root", mode => "755" |
---|
60 | } |
---|
61 | file { ["/home/sedenacional-prensa"]: |
---|
62 | ensure => directory, |
---|
63 | owner => "root", group => "sedenacional-prensa", mode => "770" |
---|
64 | } |
---|
65 | |
---|
66 | file { ["/home/sedenacional-internacional"]: |
---|
67 | ensure => directory, |
---|
68 | owner => "root", group => "sedenacional-internacional", mode => "770" |
---|
69 | } |
---|
70 | |
---|
71 | file { ["/home/sedenacional-observatorio"]: |
---|
72 | ensure => directory, |
---|
73 | owner => "root", group => "sedenacional-observatorio", mode => "770" |
---|
74 | } |
---|
75 | |
---|
76 | file { ["/home/sedenacional-genero"]: |
---|
77 | ensure => directory, |
---|
78 | owner => "root", group => "sedenacional-genero", mode => "770" |
---|
79 | } |
---|
80 | |
---|
81 | mount { "/home/sedenacional-prensa": |
---|
82 | atboot => true, |
---|
83 | device => "//tupac/prensa", |
---|
84 | ensure => mounted, |
---|
85 | fstype => "smbfs", |
---|
86 | remounts => false, |
---|
87 | options => "credentials=/root/smb-prensa,dir_mode=0770,gid=10048,iocharset=utf8", |
---|
88 | require => package["smbfs"], |
---|
89 | } |
---|
90 | |
---|
91 | mount { "/home/sedenacional-internacional": |
---|
92 | atboot => true, |
---|
93 | device => "//tupac/internacional", |
---|
94 | ensure => mounted, |
---|
95 | fstype => "smbfs", |
---|
96 | remounts => false, |
---|
97 | options => "credentials=/root/smb-internacional,dir_mode=0770,gid=10049,iocharset=utf8", |
---|
98 | require => package["smbfs"], |
---|
99 | } |
---|
100 | |
---|
101 | mount { "/home/sedenacional-observatorio": |
---|
102 | atboot => true, |
---|
103 | device => "//tupac/observatorio", |
---|
104 | ensure => mounted, |
---|
105 | fstype => "smbfs", |
---|
106 | remounts => false, |
---|
107 | options => "credentials=/root/smb-observatorio,dir_mode=0770,gid=10050,iocharset=utf8", |
---|
108 | require => package["smbfs"], |
---|
109 | } |
---|
110 | |
---|
111 | mount { "/home/sedenacional-genero": |
---|
112 | atboot => true, |
---|
113 | device => "//tupac/genero", |
---|
114 | ensure => mounted, |
---|
115 | fstype => "smbfs", |
---|
116 | remounts => false, |
---|
117 | options => "credentials=/root/smb-genero,dir_mode=0770,gid=10051,iocharset=utf8", |
---|
118 | require => package["smbfs"], |
---|
119 | } |
---|
120 | |
---|
121 | |
---|
122 | } |
---|
123 | |
---|
124 | node zara { |
---|
125 | include test_class |
---|
126 | } |
---|