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