Closed santoroj closed 5 years ago
class: class os_build::l1::hosts{ notify {" Applying ${name} ":} contain system::hosts }
hieradate:
system::hosts: puppet: ensure: 'present' ip: "10.0.0.3" host_aliases: []
Code I've had to change to get this working is to comment out were there is "sys_schedule" as shown below
class system::hosts ( $config = undef, # $sys_schedule = 'always', ) { $defaults = { ensure => 'present', # schedule => $sys_schedule, } if $config { create_resources(host, $config, $defaults) } else { $hiera_config = hiera_hash('system::hosts', undef) if $hiera_config { create_resources(host, $hiera_config, $defaults) } } }
The following error message is displayed: Error: Failed to apply catalog: Could not find schedule always
Entries added to /etc/hosts
Error: Failed to apply catalog: Could not find schedule always
Sorry - miss understanding on how the module worked. not need to for this ticket - closing
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
class: class os_build::l1::hosts{ notify {" Applying ${name} ":} contain system::hosts }
hieradate:
system::hosts: puppet: ensure: 'present' ip: "10.0.0.3" host_aliases: []
Code I've had to change to get this working is to comment out were there is "sys_schedule" as shown below
class system::hosts ( $config = undef, # $sys_schedule = 'always', ) { $defaults = { ensure => 'present', # schedule => $sys_schedule, } if $config { create_resources(host, $config, $defaults) } else { $hiera_config = hiera_hash('system::hosts', undef) if $hiera_config { create_resources(host, $hiera_config, $defaults) } } }
What are you seeing
The following error message is displayed: Error: Failed to apply catalog: Could not find schedule always
What behaviour did you expect instead
Entries added to /etc/hosts
Output log
Error: Failed to apply catalog: Could not find schedule always
Any additional information you'd like to impart