Any way to merge old configs in site.pp?

I've some configs in old site.pp to be merged into Foreman:

Say, old site.pp has two lines only:

 $global_var1 = 'value_1'
 Package { allow_virtual => false }

The first line can be migrated with a Foreman common(global) variable
'global_var1' with value 'value_1' .

but, how to migrate the setting in second line? it looks like that Foreman
httpd/passenger ignores the contents inside site.pp.

Anyone could shed a light on this? Thanks a lot.

site.pp is read by the Puppet master, no matter if you're using Foreman
or not. It's possible that it's in the wrong location. See
https://docs.puppet.com/puppet/latest/dirs_manifest.html for more details.

(Node definitions are different with an ENC, but you don't appear to be
using them.)

··· On 25/01/17 21:49, Thomas Cheng wrote: > I've some configs in old site.pp to be merged into Foreman: > > Say, old site.pp has two lines only: > > $global_var1 = 'value_1' > Package { allow_virtual => false } > > The first line can be migrated with a Foreman common(global) variable > 'global_var1' with value 'value_1' . > > but, how to migrate the setting in second line? it looks like that > Foreman httpd/passenger ignores the contents inside site.pp.


Dominic Cleal
dominic@cleal.org