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