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