Stefan Hristovski
08/15/2022, 10:32 AMFile {'<http://cpanel_jupiter_footer.html.tt|cpanel_jupiter_footer.html.tt>':
path => '/var/cpanel/customizations/content_includes/cpanel_jupiter_footer.html.tt',
content => template('cpanelthemes/cpanel_jupiter_footer.html.tt'),
owner => 'root',
mode => '0644',
}
}
and also with exec command :
exec { 'brand.txt':
path => 'whmapi1 update_customizations application=cpanel theme="jupiter" brand=$(cat /var/cpanel/customizations/content_includes/brand.txt)',
creates => '/var/cpanel/customizations/content_includes/brand.txt',
provider => shell,
}
This only seems to create a brand.txt (it's a code that is too long but shortened for puppet) into a wrong directorium. Any tips on how to procceed with this? Thanks!Stefan Hristovski
08/15/2022, 10:33 AMFile {'<http://cpanel_jupiter_footer.html.tt|cpanel_jupiter_footer.html.tt>':
path => '/var/cpanel/customizations/content_includes/cpanel_jupiter_footer.html.tt',
content => template('cpanelthemes/cpanel_jupiter_footer.html.tt'),
owner => 'root',
mode => '0644',
}
}
and also with exec command :
exec { 'brand.txt':
path => 'whmapi1 update_customizations application=cpanel theme="jupiter" brand=$(cat /var/cpanel/customizations/content_includes/brand.txt)',
creates => '/var/cpanel/customizations/content_includes/brand.txt',
provider => shell,
}
This only seems to create a brand.txt (it's a code that is too long but shortened for puppet) into a wrong directorium. Any tips on how to procceed with this? Thanks!helindbe
08/15/2022, 10:36 AMfile {
instead of File {
by convention all resource types are written with a lower case initial letter. This is not your problem though since the upper case variant is also allowed to cater for some advanced use cases.Slackbot
08/15/2022, 10:36 AMSlackbot
08/15/2022, 12:34 PMSlackbot
08/15/2022, 1:19 PMSlackbot
08/15/2022, 1:54 PMAllahshukur Ahmadzada
08/15/2022, 1:54 PMAllahshukur Ahmadzada
08/15/2022, 1:55 PMJoel Wilson
08/15/2022, 4:49 PMensure_resource()
? I seem to be and am trying to understand that.Joel Wilson
08/15/2022, 4:50 PMensure_resource()
in both locations?Joel Wilson
08/15/2022, 4:51 PMcsharpsteen
08/15/2022, 4:52 PMensure_resource()
is evaluated before the specific declaration. Order of evaluation for manifest files is very difficult to predict, let alone control, so using ensure_resource()
in both locations is the way to go.Joel Wilson
08/15/2022, 4:57 PMJoel Wilson
08/15/2022, 4:58 PMJoel Wilson
08/15/2022, 4:58 PMSlackbot
08/15/2022, 5:00 PMSkylar Thompson
08/15/2022, 5:09 PMensure_resource
to workJoel Wilson
08/15/2022, 5:24 PMSlackbot
08/15/2022, 5:44 PMSlackbot
08/15/2022, 7:02 PMSlackbot
08/15/2022, 9:05 PMramnad
08/15/2022, 9:18 PMbastelfreak
08/15/2022, 9:33 PMramnad
08/15/2022, 9:39 PMfe80
08/16/2022, 9:16 AMAnders
08/16/2022, 1:34 PMJoel Wilson
08/16/2022, 1:37 PMAnders
08/16/2022, 1:39 PMSlackbot
08/16/2022, 1:39 PM