The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
36 views

Facter does not show custom Puppet facts

facter does not show the custom facts while Puppetboard does. According to this source the paramater -p is required to show all facts including the custom once. I have tried it but the outcome seems ...
0
votes
1answer
42 views

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, ...
0
votes
1answer
35 views

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 ...
1
vote
1answer
67 views

Can't install Facter 1.7.0 on Amazon Linux using PuppetLabs Yum repositories

I've installed Puppet using the setup guide but it seems I'm only able to install Puppet packages from the amzn-* repos, even though I have installed the PuppetLabs EL6 Yum repository using the ...
2
votes
2answers
145 views

“Unsupported osfamily: Linux” when trying to install Apache using Puppet

I'm trying to setup a simple Puppet setup on AWS EC2 using the latest Amazon Linux AMI. I've followed through the install guide for RHEL and have a puppetmasterd daemon running. When apply the ...
2
votes
2answers
530 views

Why aren't my puppet variables getting assigned by Vagrant's puppet.facter options?

Given that the following is config'd in my Vagrantfile: puppet.facter = { 'variableOne' => 'one', 'variableTwo' => 'two' } ... and the following is in the manifest: notify{ "Got here ...
3
votes
1answer
754 views

Trouble using hiera in masterless setup and getting values set for classes

I am running a masterless puppet setup that applies the puppet changes in the following manner. puppet apply /tmp/puppet/manifests/site.pp --modulepath=/tmp/puppet/modules ...
2
votes
1answer
132 views

Puppet directory environments and the $environment variable

Like many (I hope), I am preparing for Puppet 4 by separating out my manifests into environments. I intend on having 3 separate environments: qa, staging, prod. In setting up the manifests initially, ...
2
votes
2answers
848 views

Access arrays/hashes in facter 2 facts

In facter 2 you can now have arrays/hashes as facts. For example: os => { "name"=>"CentOS", "family"=>"RedHat", "release"=>{ "major"=>"7", "minor"=>"0", ...
1
vote
1answer
680 views

external fact not available at very first puppet run

Introduction: We are using puppet to configure the nodes via a custom fact which is then referenced in hiera. The fact can either reside in the golden image in /etc/facter/fact.d/ or via pluginsync ...
2
votes
2answers
142 views

Puppet - determine if another host is reachable?

Is there any ready way / custom fact / etc to be able to have Puppet respond differently if a given host and port isn't available from the managed system? For example I have some products that use ...
1
vote
1answer
2k views

Facter - custom fact, returns empty data set when invoked by Puppet agent

According to this puppet labs article, I can create custom facts from shell scripts. I have created a bash script that returns a single fact, it is packaged in a modules facts.d directory. The module ...
0
votes
2answers
115 views

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 ...
3
votes
2answers
92 views

Filter puppet pluginsync

Is there a method to filter which plugins are being syncd? I have a few new modules downloaded from the forge (puppetboard,puppetdb,python). These modules include plugins, they are also only needed ...
2
votes
1answer
31 views

Exclude ifaces from network related facters

I am looking for a way to exclude ifaces from the macaddress and the interfaces facter in order to make puppet run faster on certain hosts. These facts are built-in as far as I understand and I would ...
1
vote
2answers
2k views

Null / blank values on puppet facts

How can I quickly and easily state that a null / blank value is OK on a fact within puppet? When assembling a custom fact I'm doing something like the following: ...
4
votes
1answer
1k views

Determine / set Puppet environment

I'm trying to determine what Puppet thinks the environment is on my agent nodes. Per the documentation I've configured the agent's environment in /etc/puppet/puppet.conf as such [agent] ...
0
votes
1answer
4k views

How to set the fqdn on a CentOS server? [duplicate]

I set my hostname in the /etc/sysconfig/network file to host.example.com HOSTNAME=host.example.com Fyi, I then issued a reboot on the machine. I have a problem with Puppet: when I run Facter on ...
2
votes
1answer
571 views

Most appropriate place for custom Puppet facts - RHEL

I'm not much of a Ruby guy, but found how to list the Ruby load path. Here's what it looks like for me $ ruby -e 'puts $:' /usr/lib/ruby/site_ruby/1.8 /usr/lib64/ruby/site_ruby/1.8 ...
3
votes
2answers
4k views

Puppet & Facter - how to determine if running Cent 6 or Cent 5

How would you use facter and puppet to determine if the OS is running Cent 6.x or Cent 5.x ? facter operatingsystemrelease 6.4 I only care about the major release (6) I've thought about using ...
2
votes
1answer
191 views

Puppet: Enumerating all users within a group

Is there any way to enumerate an array of all users within a group within Puppet, either as a fact or something so I can do something like this? $users = enumusers('wheel') each($users) |$user| { ...
2
votes
2answers
1k views

Puppet facts: should we use lsbdistid or operatingsystem?

With current versions of Puppet and Facter I get the same information in the lsbdistid and operatingsystem facts - I don't look at osfamily because on Gentoo Linux it reports a generic "Linux" string. ...
5
votes
2answers
685 views

Puppet sometimes can't find standard facts like osfamily

Quick brief - for testing purpose, I installed puppet agent on 5 nodes (Debian Squeeze + puppet 2.7.20-1puppetlabs1), and puppet master on 1 server (same version). On puppetmaster side in every ...
2
votes
0answers
205 views

Clean up old Domain Name for Nodes in Puppet Dashboard

I changed the domain name for some servers, i.e. web1.foo.com to web1.baz.com. In my Puppet Dashboard, I see two entries now for the same server. I can destroy a node with something like rake ...
0
votes
1answer
379 views

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 ...