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

error code 500 on master server and agents

$
0
0
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 download the agent MSI from the default URL. What is going wrong? Error is: Debug: Caching connection for https://puppetserver.theben.lab:8140 Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Class[Puppet_enterprise]: expects a value for parameter 'puppet_master_host' on node puppetserver.theben.lab Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run Debug: Dynamically-bound server lookup failed, falling back to report_server setting If someone has any idea, a tip will be appreciated. Kind regards, Ben

using puppet to setup prometheus node exporter

$
0
0
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 and deploy that using the network interface. However I"m new to this and don't know if I need to set up a class or if I can do this straight from the config files. Here is an example of what I have so far: ExecStart=/opt/monitoring/redis_exporter-master -redis.addr <%= @$ipaddress %>:6379 Thoughts? We have also tried following information found on: https://stackoverflow.com/questions/18390047/how-to-create-a-puppet-fact-with-all-ip-addresses-of-the-puppet-master

amzn-2017.03-x86_64 in Puppet Enterprise

$
0
0
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 process, and what rpm should I use and which rpm repository? thanks.

Copy directory without overwrite existed files

$
0
0
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 It seems a question about recursively set `replace` for every file in source directory?

file_line append

$
0
0
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 => ' >> "\$CATALINA_OUT" 2>&1 "&"', line => ' 2>&1 |/usr/bin/cronolog "$CATALINA_BASE/logs/catalina-%Y-%m-%d.out" &', multiple => true, append_on_no_match => false, } Importantly I want to use the 'append_on_no_match' parameter, otherwise on the second puppet run the line will be appended. When running the puppet agent on a test node I am getting this error: Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: no parameter named 'append_on_no_match' I am using stdlib 4.19.0, which I believe supports this parameter.

`dconf write` with puppet

$
0
0
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 '""' How could I do this using puppet?

`dconf write` with puppet

$
0
0
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 '""' How could I do this using puppet?

I need to install chocolatey package as windows administrator. Is there a way to achieve this using a puppet agent service?

$
0
0
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 of a lack of privileges. I can run the chocolatey command directly from powershell prompt (run as administrator). Is there a way to instruct the agent to run choco command as an administrator?

Optional Hash in puppet

$
0
0
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 $uid,> Integer $gid,> String $home,> Optional[Hash[String, Integer]] $groups,> ){ It gives me below error saying it expects an integer. Error: Evaluation Error: Error while evaluating a Resource Statement, Mym::Usr_acct[websvc]: parameter 'groups' entry 'name' expects an Integer value, got String at /tmp/a.pp:1 on node centos.vm This is what I have in /tmp/a.pp > mym::usr_acct { websvc :> group => 'websvc',> uid => 4501,> gid => 507,> home => '/home/websvc',> groups => {> name => 'allok',> id => 9999, }, }

I have a task to automate the oracle database build using puppet server, since i am new to puppet any guidance on this would be really helpful

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

Migrating from Puppet 3.x to Puppet 4 at scale.

$
0
0
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?

Error: Could not initialize global default settings: Cannot set modulepath settings in puppet.conf

$
0
0
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 /etc/puppetlabs/code/environments/production/modules:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules I have to add two directories ... - /etc/puppetlabs/code/environments/production/modules/tools - /etc/puppetlabs/code/environments/production/modules/core ... to my modulepath. So I am doing this: # puppet config set modulepath "/etc/puppetlabs/code/environments/production/modules/tools:/etc/puppetlabs/code/environments/production/modules/core:`puppet config print modulepath`" But I get this error: # puppet config print modulepath Error: Could not initialize global default settings: Cannot set modulepath settings in puppet.conf The modulepath in my puppet.conf looks ok: # grep modulepath /etc/puppetlabs/puppet/puppet.conf modulepath = /etc/puppetlabs/code/environments/production/modules/tools:/etc/puppetlabs/code/environments/production/modules/core:/etc/puppetlabs/code/environments/production/modules:/etc/puppetlabs/code/modules:/opt/puppetlabs/puppet/modules I am doing something wrong or is this a bug?

Error 400 on SERVER: Error puppet master hostname, array size from puppet db is not 1

$
0
0
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 error in my hieradata, problem as been solved but no i've the following problem : *Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Error puppet master hostname, array size from puppet db is not 1 : 0 on node mynewkvm.services.lan*

Deploy vsphere vm and set the hostname and static IP

$
0
0
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 and the IP to the deployed vm. Now I would like to know if there is any possibility to get it to work with any puppet modules or with puppet master itself.

The repeat attribute of the schedule resource does not evaluate.

$
0
0
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 => "publish_sched", } This code produces the notify message during the specified range and weekday but does not apply the `repeat => 1,` specification. It repeats as many times as puppet runs during that period. The documentation even states that the default for `repeat` is `1`. This is puppet 3.6.2 (master and client) running on RedHat 6.

Putting all parameter in Hiera

$
0
0
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 ($params) { class { 'myOtherResource': * => $params, } } It works as expected but I just want get feedback if I'm doing it correctly or if there is any other better way doing it. PS. I'm still learning Puppet

Can't delete user(s) from a Windows local group

$
0
0
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 => false, members => $mymembers, } This is the result. Almost seems like it's trying to remove the actual group? Error: Could not set 'absent' on ensure: (in OLE method `Delete': ) OLE error code:8007055B in Active Directory Cannot perform this operation on built-in accounts. HRESULT error code:0x80020009 Exception occurred. at 25:/etc/puppetlabs/code/environments/production/modules/localgroup/manifests/fallback.pp Wrapped exception: (in OLE method `Delete': ) OLE error code:8007055B in Active Directory Cannot perform this operation on built-in accounts. HRESULT error code:0x80020009 Exception occurred. Error: /Stage[main]/localgroup::Fallback/Group[SPT Support remove from Administrators]/ensure: change from present to absent failed: Could not set 'absent' on ensure: (in OLE method `Delete': ) OLE error code:8007055B in Active Directory Cannot perform this operation on built-in accounts. HRESULT error code:0x80020009 Exception occurred. at 25:/etc/puppetlabs/code/environments/production/modules/localgroup/manifests/fallback.pp

Python Restful web services to update Hiera

$
0
0
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 received from a REST web service. Following are the steps: 1. User invokes REST service on Orchestration Layer with information like web-app path, nexus path etc. 2. Request comes to the Python based Orchestration Layer. 3. Orchestration Layer updates Hiera with the information passed in Step 1. 4. The web-app gets deployed on the agents. Now I have certain questions: 1. Does this architecture looks feasible or is something has been missed ? 2. Which Python web framework would be best suited for the Orchestration Layer - Django, Flask, web.py or something else ? Please advise.

How to test puppet manifests locally?

$
0
0
Will the Puppet PDK add Beaker into the mix for local manifest development?

How can I use eyaml to encrypt yaml block?

$
0
0
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 store the encrypted version of the cert. I am not sure what my command line would be: I tried: # eyaml encrypt -s <-----BEGIN CERTIFICATE----->BlahBlahBlah>-----END CERTIFICATE----- EOT But that does work so well: Error: option '-s' needs a parameter.
Viewing all 6104 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>