[159] | 1 | import "classes/*.pp" |
---|
[164] | 2 | import "common/*.pp" |
---|
[166] | 3 | import "/etc/puppet/modules/module-svn/manifests/*.pp" |
---|
[159] | 4 | |
---|
[216] | 5 | import "node-prod.pp" |
---|
| 6 | |
---|
[159] | 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 |
---|
[181] | 18 | node peon { |
---|
| 19 | include test_class |
---|
| 20 | include estacion-de-trabajo |
---|
| 21 | } |
---|
[206] | 22 | |
---|
| 23 | node ardizzone { |
---|
| 24 | include test_class |
---|
| 25 | include audiostreamer |
---|
[216] | 26 | |
---|
| 27 | debproxy::activateclient { dist: |
---|
| 28 | debproxyhost => "debproxy", |
---|
| 29 | } |
---|
| 30 | |
---|
[206] | 31 | } |
---|
| 32 | |
---|
[159] | 33 | node walsh { |
---|
| 34 | include test_class |
---|
[183] | 35 | |
---|
| 36 | cronapt::mailon-mailto { dist: |
---|
| 37 | mailon => "upgrade", |
---|
| 38 | mailto => "seguridad@localhost" |
---|
| 39 | } |
---|
| 40 | |
---|
[159] | 41 | include estacion-de-trabajo |
---|
[161] | 42 | |
---|
| 43 | ltsp::buildclient { dist: |
---|
| 44 | mirror => "http://debproxy:3142/ar.archive.ubuntu.com/ubuntu", |
---|
| 45 | securitymirror => "http://debproxy:3142/security.ubuntu.com" |
---|
[164] | 46 | } |
---|
[159] | 47 | |
---|
[164] | 48 | include ltsp::tftpdhpa::activate |
---|
| 49 | |
---|
[168] | 50 | include matrix::ldapauthclient |
---|
| 51 | |
---|
[206] | 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 | |
---|
[161] | 122 | } |
---|
| 123 | |
---|
[159] | 124 | node zara { |
---|
| 125 | include test_class |
---|
| 126 | } |
---|