Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class repos($keep = 0)
- {
- $base_repo = "http://yum.XXXXXX.local/repo"
- # Asegurarse de que el repositorio existe, y de que está vacío si no queremos conservar los posibles repositorios existentes.
- file
- {
- "/etc/yum.repos.d":
- ensure => directory,
- owner => root,
- group => root,
- mode => 755,
- if ($keep == 0)
- {
- recurse => true,
- purge => true,
- force => true,
- }
- }
- Sep 5 09:47:54 puppet-server puppet-master[13804]: Could not parse for environment production: Syntax error at 'if'; expected '}' at /etc/puppet/manifests/repos.pp:14 on node puppet-client02.XXXXXX.local
- Sep 5 09:47:54 puppet-server puppet-master[13804]: Could not parse for environment production: Syntax error at 'if'; expected '}' at /etc/puppet/manifests/repos.pp:14 on node puppet-client02.XXXXXX.local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement