list resources based on a specific parameter value
I would like to create an array of resource titles. The resource titles should all come from a list of resources that have a specific value for a certain parameter. The resources are created based on...
View ArticleDifference between init.pp and site.pp and does each override other , in case...
Hi Team , Am new to puppet , was working on BMC Bladelogic SA previously , can some one tell me the difference between init.pp and site.pp and does each override other , in case of same setting...
View ArticleFacter - custom fact - change directory then run command
I'm trying to create a new fact by changing to a directory, running a command, then storing the result as the fact. The command run standalone is working but Facter is returning a null value...
View ArticlePuppet Application Orchestration - Node Run Order
I'm trying to use Application Orchestration to install Oracle 12c RAC on Node 1 and Node 2. The correct node run order or sequence should be what's on the jpg file (Oracle12cRAC_Node1_Node2.jpg)....
View ArticlePuppetDB outage makes Puppet Servers hang
Hi, Where I work, we're using PuppetDB 2.3.8 and Puppet Servers 1.2.0, and are facing an issue that occurs during PuppetDB outages. Note that PuppetDB outages are not at all frequent for us, but it...
View ArticleHow to enable/start a service based on a fact?
Hi, I'm working on RedHat Enterprise Linux 7 (systemd) and would like to enable and start the 'fstrim.timer' service only if the host is physical. I don't see a way within the service resource to do...
View ArticleUpdating APT Key for Ubuntu 16.04 LTS On Master
Hello, Today on my Puppet master, I am receiving the following error when performing an apt-get update: root@puppy:/home/user# apt-get update Get:1...
View ArticleWriting facts for Windows in Ruby
Hi, I'm working on fact for Windows that should display parameter "server" from puppet.conf file. I wrote this fact for Linux and there is no problem. There is a code: Facter.add(:puppet_master) do...
View ArticleCustom fact for Windows in Ruby (working with files)
Hi, I'm working on fact for Windows that should display parameter "server" from puppet.conf file. I wrote this fact for Linux and there is no problem. There is a code: Facter.add(:puppet_master) do...
View ArticleHow To Get Access Facter Hash Key in Puppet?
How To Get Access Facter Hash Key in Puppet? I am creating a manifest to get an Agent's partition name. The fact `$partition`s shows the detail of the partition info....
View ArticleHow do you manage a package with tons of dependent package?
Hi, We have package 'foobar' and when Puppet installs a new version, it restarts service foobar. All good. foobar has dozens of dependencies, for example 'lib-foobar'. Puppet knows about these, also....
View ArticlePuppet not changing user password
When I commission a new Raspberry Pi, I want Puppet to change the password from the default. However, I do NOT want the password changed subsequently. I am therefore trying to create an external fact...
View Articleanother kind of error "Could not find class"
i use "puppet apply" to test the code: module name: zx file /etc/puppet/modules/test/manifests/init.pp: class zx { include zx::install } include zx file /etc/puppet/modules/test/manifests/install.pp:...
View ArticlePassing credentials to DSC?
In many DSC modules, credentials are merely a single parameter (usually 'credentials'). In a completely native PS/DSC environment you can easily pass the username/password to this by just running...
View ArticlePuppet Apply
I have a module named cowsayings with the module structure that looks like this. cowsayings/ ├── examples │ └── cowsay.pp └── manifests └── cowsay.pp 2 directories, 2 files...
View ArticlePuppet v3 auth.conf regex engine rules
Hi Guys, I'm going to be amending some of the rules in P3 auth.conf and wanted to check which regex engine rules to follow. Not all regex engines are the same unfortunately. Cheers Chris
View Articlehow to make attributes mandatory i.e if not specified puppet should raise...
I'm creating a custom type something like xyz and I want to make some attributes mandatory. its attributes are name, ipaddress and store. if ipaddress and store are not specified puppet should raise...
View ArticleHow can I apply the most recently generated catalog? ie, agent with...
Our setup is a puppet-master with foreman and running puppet agent in cron. The agent compiles the catalog and applies it. Is it possible to re-apply the most recently generated catalog? An obvious use...
View ArticleContinous Deployment of oracle sbar with puppet
Hi, Currently, we are deploying SOA application from jenkins. Our management wants to automate the deployments through puppet. we don't have maven -repository or nexus set up to store maven artifacts....
View Articlebeaker and git modules
Complete newby with beaker-rspec. How would I get a Git repo? Something like this: hosts.each do |host| on host, puppet('module','install','puppetlabs-stdlib'), { :acceptable_exit_codes => [0,1] }...
View Article