Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Browsing all 6104 articles
Browse latest View live

Syntax error at '}'; expected '}'

Trying to understand why this is a syntax error: if $manage_home == true { User[$title] -> File["${title}_home"] -> File["${title}_sshdir"] } else { User[$title] # This is the problem line } I...

View Article


puppetdb not picking up the server_urls from config file

Hi, In my config file I have server URL listed like this cat /etc/puppetlabs/puppet/puppetdb.conf [main] server_urls = https://webserver:8081 but when I run the 'puppet agent --test' command its...

View Article


Solved: Puppet Enterprise Console cannot read classes from Puppet Server

The environments and classes on my Puppet Enterprise Console had become unavailable. On the Puppet server, in the puppetserver.log file I found an error that occurred every time I was tried to reload...

View Article

Custom Facts are not working with hiera on puppet agent nodes

We have created a custom factor "datacenter" via /lib/facter/datacenter.rb on puppet master node. when i ran facter -p datacenter, it works fine, and so added the same in hiera.yaml. --- :backends: -...

View Article

puppet agent error ubuntu 16.04

I installed puppet-agent 1.9.3-1xenial on Ubuntu 16.04, however I got following error when trying to run puppet command: =========== /opt/puppetlabs/puppet/lib/ruby/2.1.0/rubygems/ext/builder.rb:89:in...

View Article


augeaus match block problem

Hello, I am trying to add a match block section to a sshd_config file. This is needed for a sftp server. I am using the augeas puppet module: - https://forge.puppet.com/herculesteam/augeasproviders_ssh...

View Article

apt::source, hiera, calling_module, how to combine

I' m struggling for about two weeks to figure out how to implement following scenario: Let' s say I have a module that installs and configures rabbitmq. Since I need package version that is not present...

View Article

Augeas-1.5.0 to edit file using Puppet

Hi All, I have configured Puppet 3.8.1 and Augeas 1.5.0. I am trying to edit /etc/hosts file using augeas with following code: augeas{'host_file': context => "/files/etc/hosts", changes => [...

View Article


add source::list before configuring puppetmaster

Hi, I'm trying to configure puppetmaster with puppetdb+unicorn+nginx, so I created module "puppetmaster" where I declare classes from puppetforge modules to facilitate my work, like require...

View Article


Deleting files older than two months using puppet

I need to delete all files in a directory which are older than two months. For this I am using `tidy` resource. The file naming convention inside the directory are as follows: -rw-r--r-- 1 root admin...

View Article

cannot load such file -- puppet/util/command_line

Whatever the command I am running on my centos 7 machine I am getting following error> `/usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in 'require': cannot load such file --...

View Article

remove lookup for puppet master in standalone mode

Hello ! I'm having the following issue : Puppet writes many logs in my `/var/log/syslog` saying : `Could not request certificate: getaddrinfo: Name or service not known` From what I understood this...

View Article

Install an ipp printer with cups

I have an ipp printer on my network: http://192.168.0.101:631/ [Ubuntu 16.04 on nodes] It's not clear to me how I can install this printer using either of the puppet modules available...

View Article


Install and IPP printer with cups

I have an ipp printer on my network: http://192.168.0.101:631/ [Ubuntu 16.04 on nodes] It's not clear to me how I can install this printer using either of the puppet modules available...

View Article

Issues running vRA Puppet Agent workflows in VRealize Orchestrator

Hi, has anyone installed the latest VRealize Automation Plugin for Puppet into VRealize Orchestrator? I have the plugin installed and have managed to run the workflow to configure my puppet master....

View Article


Does the puppet console node graph show the order resources are applied in?

I want to know if the node graphs in puppet show the specific order resources are applied in. I notice that it shows the relationships between classes and resource, what I want to know is if the order...

View Article

puppet api and auth.conf

I have a puppetdb 2.3 install and I've updated auth.conf, but still get "access denied". I've restarted pe-puppetdb and pe-postgres, but still getting the error. What service is using auth.conf? And...

View Article


I am getting following error while running puppet apply

output Error: Validation of Exec[extract_tomcat] failed: 'gunzip apache-tomcat.tar.gz' is not qualified and no path was specified. Please qualify the command or specify a path. at...

View Article

exec from forge module returns 1

I am using a forge module that returns 1 as the return code and puppet throws an error about it. But for that exec , 1 should be treated as successful. I cannot add returns 1 on the exec because it is...

View Article

Add the loopback entry to the first line in the /etc/hosts file

Hi, I need to create a module which checks if the /etc/hosts file has the first line with the loopback entry. If it does, do nothing; else, insert 127.0.0.1 localhost localhost.localdomain in the...

View Article
Browsing all 6104 articles
Browse latest View live


Latest Images