voxpupuli / puppet-system

Manage Linux system resources and services from hiera configuration
https://forge.puppet.com/puppet/system
Apache License 2.0
63 stars 47 forks source link

Error: Failed to apply catalog: Could not find schedule always #62

Closed santoroj closed 5 years ago

santoroj commented 5 years ago

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

santoroj commented 5 years ago

Sorry - miss understanding on how the module worked. not need to for this ticket - closing