You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
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
The text was updated successfully, but these errors were encountered: