My blog

View on GitHub

Evil Del on November 8, 2016 at 1:27 am Hi, I get a json file, but it has no resources. The output says environment is ‘production’ when it should be ‘stress_test’.

$ sudo -u puppet /opt/puppetlabs/bin/puppet master –configprint vardir
$ sudo -u puppet vim /opt/puppetlabs/server/data/puppetserver/.puppetlabs/opt/puppet/cache/yaml/facts/

The fact file looks good.

Why an I getting no resources?

Alex Harvey on November 10, 2016 at 6:03 pm Well there are two obvious differences in what you’re trying to do and what I did – one is (as I mentioned), I was using Puppet 3. The other is that you’re calling sudo -u puppet. Could you tell me if not using sudo makes a difference?