Questions tagged [facter]

39 questions
0
votes
0 answers

What is a good way of retrieving/caching external facts using facter?

All of our servers have attributes that we store in a database and I'd like to make these attributes available locally on each server for use by Puppet. I don't want facter to query the database each time facter is run so using a facter executable…
wsaxton
  • 195
  • 11
0
votes
2 answers

How to access facter GCE metadata

Facter contains GCE (Google Compute Engine) metadata details: $ facter | grep gce gce => {"instance"=>{"attributes"=>{}, "description"=>"", "disks"=>[{"deviceName"=>"srvpup01", "index"=>0, "mode"=>"READ_WRITE", "type"=>"PERSISTENT"},…
0
votes
0 answers

Notify value of variable that holds a nested fact - Puppet4

I am trying to understand what the difference is between the following: $major_release = $::facts['os']['release']['major'] $selinux_is_enabled = $::facts['os']['selinux']['enabled'] If I put in my manifest: notify { "major release is:…
moley
  • 1
0
votes
1 answer

Puppet: Pass facter value to class (sensu puppet module)

Trying to set a custom subscription to get remediator.rb working in the sensu module in puppet. class sensuJenkinsMasterClient { class { 'sensu': purge_config => true, rabbitmq_password => '', rabbitmq_host =>…
user2363318
  • 361
  • 1
  • 3
  • 11
0
votes
1 answer

ec2_metadata fact not updating

I have added a "role" value to my instance metadata (I'm running on Openstack). I see it in curl http://169.254.169.254/openstack/latest/meta_data.json, but it is not appearing in the ec2_metadata fact.
chriscowley
  • 523
  • 4
  • 17
0
votes
2 answers

Hiera datatypes wont load in Puppet

I have spent a couple of days on this, followed the instructions on http://downloads.puppetlabs.com/docs/puppetmanual.pdf and even the Puppet Training Advanced Puppet manual. When I run a test against it, the results always come back as 'nil' and Im…
Cole Shores
  • 123
  • 2
0
votes
1 answer

puppet on amazon ec2: could not change hostname

I'm running ec2 debian instance and trying to get puppet working on it. I'd like my hostnames to be something more readable, so I've changed /etc/hostname, run /etc/init.d/hostname.sh start and I can see my human-readable hostname in the prompt.…
rvs
  • 4,125
  • 1
  • 27
  • 31
0
votes
0 answers

Puppet $facts built-in variable is undefined

I'm having an issue with a puppet agent running on a pi. It's running the same modules as a lot of others, and just this one is showing this issue, so whatever it is, it must be damn specific. My problem is, I don't know where to start looking for…
UncleBob
  • 247
  • 2
  • 13
0
votes
1 answer

Getting error AnsibleUndefinedVariable: 'facter_ipaddress_eth1' when running ansible playbook

Getting one big error stacktrace of ansible variable not found exception ansible.errors.AnsibleUndefinedVariable: 'facter_ipaddress_eth1' while I am runing ansible play book. the value that gets set here and other…
Ciasto piekarz
  • 111
  • 1
  • 10
1 2
3