Changeset 726


Ignore:
Timestamp:
May 11, 2010, 10:24:53 AM (11 years ago)
Author:
sebas@…
Message:

ajustar las dependencias entre los execs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/puppet/modules/puppet-openldap/manifests/classes/server-slave.pp

    r665 r726  
    2626         source  => "puppet:///openldap/etc/ldap/schema/",
    2727         recurse => "true",
     28         notify  => Exec_ldap_files["/etc/ldap/schema"],
    2829         before  => Exec_ldap_files["/etc/ldap/schema"],
    29          require => Package[slapd];
     30         require => Package["slapd", "ldap-utils"];
    3031        "/var/backups/ldap":
    3132         ensure  => directory,
     
    5960        $unless = "$test -e $slapd_path/cn=config/cn=schema/cn={*}$name"
    6061
    61         file { "${archivo}/$name" : ensure => present }
     62#        file { "${archivo}/$name" : ensure => present }
    6263        exec { "ejecuta$name":
    6364            command => "$ldap_add $archivo/$name",
    6465            unless => $unless,
    6566            returns => [0,80],
     67            notify  => Exec["ejecutaConsumerInit"],
     68            before  => [ Exec["ejecutaConsumerInit"]  ],
    6669       }
    6770    }
     
    7679    exec { "ejecutaConsumerInit":
    7780        command => "$ldap_add /etc/ldap/consumer-init.ldif",
    78         unless => "$test -e $slapd_path/cn=config/cn=module{0}.ldif",
     81        unless  => "$test -e $slapd_path/cn=config/cn=module{0}.ldif",
    7982        returns => [0,80],
     83        notify  => Exec["ejecutaConsumerSync"],
     84        before  => [ Exec["ejecutaConsumerSync"]  ],
    8085    }
    8186    exec { "ejecutaConsumerSync":
Note: See TracChangeset for help on using the changeset viewer.