1 class base_installation::puppet (
2 $password_seed = $base_installation::puppet_pass_seed
3 ) inherits base_installation {
10 exec { 'generate_password_seed':
11 command => "/usr/bin/openssl rand -base64 -out $password_seed 256",
12 creates => $password_seed,
13 environment => "RANDFILE=/dev/null",
16 unless empty(find_file($password_seed)) {
17 $ldap_password = generate_password(24, $password_seed, "ldap")
18 $ssha_ldap_seed = generate_password(5, $password_seed, "ldap_seed")
20 package { 'gem:ruby-ldap':
24 install_options => "--no-user-install"
27 file { $password_seed:
31 file { $base_installation::puppet_conf_path:
33 require => [Package["puppet"], Package["gem:ruby-ldap"]],
39 file { "$base_installation::puppet_conf_path/puppet.conf":
40 content => template("base_installation/puppet/puppet.conf.erb"),
41 require => File[$base_installation::puppet_conf_path],
44 file { "$base_installation::puppet_conf_path/host_ldap.info":
45 content => template("base_installation/puppet/host_ldap.info.erb"),
46 require => File[$base_installation::puppet_conf_path],
47 notify => Notify_refresh["notify-ldap-password"],
50 notify_refresh { "notify-ldap-password":
51 message => template("base_installation/puppet/host_ldap.info.erb"),