error code 500 on master server and agents
Hi to all, On Oracle Linux 7, I build a webserver and installed without errors Puppet Master server. Running puppet agent -t or puppet agent -t --debug I receive an error. It is also not possible to...
View Articleusing puppet to setup prometheus node exporter
Hello, I'm running into some confusion trying to get puppet (running on CentOS 6) to use facter variables to create a systemd service. I want to create a service for prometheus's redis node exporter...
View Articleamzn-2017.03-x86_64 in Puppet Enterprise
Unable to install puppet on amazon linux. However, documents say its possible in newest version of puppet enterprise using redhat rpm. Does that mean to install puppet agent somehow through the rpm...
View ArticleCopy directory without overwrite existed files
In one word, how could I copy a directory without overwrite existed files in target directory if target directory exists? set `replace=false` seems doesn't copy at all if target directory exists. So...
View Articlefile_line append
I am trying to use the file_line resource too change two lines (which are both the same) in a file, here is my code: file_line { "Rotate catalina.out": path => "/opt/tomcat/bin/catalina.sh", match...
View Article`dconf write` with puppet
I am using this command to regain control of the "Alt" key on Ubuntu Desktop (for use in Blender, GIMP, Inkscape, Unity, etc) dconf write /org/gnome/desktop/wm/preferences/mouse-button-modifier '""'...
View Article`dconf write` with puppet
I am using this command to regain control of the "Alt" key on Ubuntu Desktop (for use in Blender, GIMP, Inkscape, Unity, etc) dconf write /org/gnome/desktop/wm/preferences/mouse-button-modifier '""'...
View ArticleI need to install chocolatey package as windows administrator. Is there a way...
I have custom chocolatey install/uninstall/modify scripts that create a service in windows. It requires admin privileges to create the windows service. However when puppet agent runs it fails because...
View ArticleOptional Hash in puppet
Hi, I'm trying to create an optional hash variable in puppet but it gives me an error. What am I doing wrong here ? > define mym::usr_acct (> String $user = $title,> String $group,> Integer...
View ArticleI have a task to automate the oracle database build using puppet server,...
I am from DBA {Ops} background and would like to know, if anyone has already done it or have any idea on how that can be done.
View ArticleMigrating from Puppet 3.x to Puppet 4 at scale.
I have a very large and very old code base. 500k lines of manifests code. The code base also goes back to 2007. What are the steps to migrate this codebase to Puppet 4?
View ArticleError: Could not initialize global default settings: Cannot set modulepath...
I am having trouble setting my modulepath on my puppet master. # puppet -V 4.10.5 Here is the default modulepath # puppet config print modulepath...
View ArticleError 400 on SERVER: Error puppet master hostname, array size from puppet db...
I come here because i'm blocked on a error since 5 days. As a novice on Puppet i've added my puppet agent to my puppet master (added and signed the certificate), after some tries i've start with a...
View ArticleDeploy vsphere vm and set the hostname and static IP
Hello community, I am new to puppet and few days ago I tried to deploy VMs on our vcenter. The cloning process is simple and works well but I've missed some functionality like defining the hostname...
View ArticleThe repeat attribute of the schedule resource does not evaluate.
In the following code the `repeat` attribute is not evaluated: schedule { "publish_sched" : range => "12:10 - 13:00", weekday => "Thursday", repeat => 1, } notify { "test message" : schedule...
View ArticlePutting all parameter in Hiera
I'm trying to pass all parameter from hiera to my class like this: In hiera: myapp::params: param1: value1 param2: value2 : param_n: param_n_1: value_n_1 param_n_2: value_n_2 In myapp class class myapp...
View ArticleCan't delete user(s) from a Windows local group
Any ideas what the issue may be with deleting a user/member from a windows local group? group {'remove from Administrators': name => 'Administrators', ensure => absent, auth_membership =>...
View ArticlePython Restful web services to update Hiera
Hi All, I currently have a setup of a puppet master and 2 agents. The requirement is to be able to deploy a simple web-app on the tomcats of both the agents, as and when required, based on request...
View ArticleHow to test puppet manifests locally?
Will the Puppet PDK add Beaker into the mix for local manifest development?
View ArticleHow can I use eyaml to encrypt yaml block?
Let say I am storing some block hiera data like a certificate like this in my hieradata: my_cert: | -----BEGIN CERTIFICATE----- BlahBlahBlah -----END CERTIFICATE----- and I want to use eyaml so I can...
View Article