[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 | |
---|
[228] | 37 | include ubuntu::optimizacion |
---|
| 38 | |
---|
[223] | 39 | include utile-cli |
---|
| 40 | |
---|
| 41 | debproxy::activateclient { dist: |
---|
| 42 | debproxyhost => "debproxy-ubuntu", |
---|
| 43 | } |
---|
| 44 | |
---|
[183] | 45 | cronapt::mailon-mailto { dist: |
---|
| 46 | mailon => "upgrade", |
---|
| 47 | mailto => "seguridad@localhost" |
---|
| 48 | } |
---|
| 49 | |
---|
[159] | 50 | include estacion-de-trabajo |
---|
[161] | 51 | |
---|
[225] | 52 | ubuntufirefox::startuppage { dist: |
---|
| 53 | startuppage => "http://www.sedenacional.cta.org.ar", |
---|
| 54 | } |
---|
| 55 | |
---|
[161] | 56 | ltsp::buildclient { dist: |
---|
[223] | 57 | mirror => "http://debproxy-ubuntu:3142/ar.archive.ubuntu.com/ubuntu", |
---|
| 58 | securitymirror => "http://debproxy-ubuntu:3142/security.ubuntu.com" |
---|
[164] | 59 | } |
---|
[159] | 60 | |
---|
[164] | 61 | include ltsp::tftpdhpa::activate |
---|
| 62 | |
---|
[168] | 63 | include matrix::ldapauthclient |
---|
| 64 | |
---|
[206] | 65 | # mount samba shared |
---|
| 66 | package { |
---|
| 67 | [ "smbfs" ]: ensure => installed; |
---|
| 68 | } |
---|
| 69 | |
---|
| 70 | file { ["/home"]: |
---|
| 71 | ensure => directory, |
---|
| 72 | owner => "root", group => "root", mode => "755" |
---|
| 73 | } |
---|
| 74 | file { ["/home/sedenacional-prensa"]: |
---|
| 75 | ensure => directory, |
---|
| 76 | owner => "root", group => "sedenacional-prensa", mode => "770" |
---|
| 77 | } |
---|
| 78 | |
---|
| 79 | file { ["/home/sedenacional-internacional"]: |
---|
| 80 | ensure => directory, |
---|
| 81 | owner => "root", group => "sedenacional-internacional", mode => "770" |
---|
| 82 | } |
---|
| 83 | |
---|
| 84 | file { ["/home/sedenacional-observatorio"]: |
---|
| 85 | ensure => directory, |
---|
| 86 | owner => "root", group => "sedenacional-observatorio", mode => "770" |
---|
| 87 | } |
---|
| 88 | |
---|
| 89 | file { ["/home/sedenacional-genero"]: |
---|
| 90 | ensure => directory, |
---|
| 91 | owner => "root", group => "sedenacional-genero", mode => "770" |
---|
| 92 | } |
---|
| 93 | |
---|
| 94 | mount { "/home/sedenacional-prensa": |
---|
| 95 | atboot => true, |
---|
| 96 | device => "//tupac/prensa", |
---|
| 97 | ensure => mounted, |
---|
| 98 | fstype => "smbfs", |
---|
| 99 | remounts => false, |
---|
| 100 | options => "credentials=/root/smb-prensa,dir_mode=0770,gid=10048,iocharset=utf8", |
---|
| 101 | require => package["smbfs"], |
---|
| 102 | } |
---|
| 103 | |
---|
| 104 | mount { "/home/sedenacional-internacional": |
---|
| 105 | atboot => true, |
---|
| 106 | device => "//tupac/internacional", |
---|
| 107 | ensure => mounted, |
---|
| 108 | fstype => "smbfs", |
---|
| 109 | remounts => false, |
---|
| 110 | options => "credentials=/root/smb-internacional,dir_mode=0770,gid=10049,iocharset=utf8", |
---|
| 111 | require => package["smbfs"], |
---|
| 112 | } |
---|
| 113 | |
---|
| 114 | mount { "/home/sedenacional-observatorio": |
---|
| 115 | atboot => true, |
---|
| 116 | device => "//tupac/observatorio", |
---|
| 117 | ensure => mounted, |
---|
| 118 | fstype => "smbfs", |
---|
| 119 | remounts => false, |
---|
| 120 | options => "credentials=/root/smb-observatorio,dir_mode=0770,gid=10050,iocharset=utf8", |
---|
| 121 | require => package["smbfs"], |
---|
| 122 | } |
---|
| 123 | |
---|
| 124 | mount { "/home/sedenacional-genero": |
---|
| 125 | atboot => true, |
---|
| 126 | device => "//tupac/genero", |
---|
| 127 | ensure => mounted, |
---|
| 128 | fstype => "smbfs", |
---|
| 129 | remounts => false, |
---|
| 130 | options => "credentials=/root/smb-genero,dir_mode=0770,gid=10051,iocharset=utf8", |
---|
| 131 | require => package["smbfs"], |
---|
| 132 | } |
---|
| 133 | |
---|
| 134 | |
---|
[161] | 135 | } |
---|
| 136 | |
---|
[159] | 137 | node zara { |
---|
| 138 | include test_class |
---|
| 139 | } |
---|