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