Displaying 20 results from an estimated 30000 matches similar to: "Building yaml files"
2012 Mar 23
11
Plugins and Hiera
Dear all,
This is a continuation of another thread, but I think the question diverged
enough to create a new one.
I have a hiera hierarchy like this:
:hierarchy:
- %{fqdn}
- %{secundary_group}
- %{primary_group}
- %{productname}
- all
And I need to define the secondary/primary groups as facts, on the nodes. Gary
has suggested me to use plugins, that they will provide the facts before
2012 Feb 03
16
neatest way to determine a major version of centos/linux?
Just started a rollout of centos 6.x across our Puppet deployment
(100-odd servers).
what fact would people suggest I use to distinguish 5.x from 6.x
(quite a lot of subsystems are different between major releases)?
lsb* facts don''t seem to be present on centos 6 - is this an EPEL bug,
or have they
just been removed in Facter?
Thanks!
--
You received this message because you are
2012 Feb 06
3
Passing class parameters to hiera
I am using puppet 2.6.11 and want to pass parameter for implementing
sudo for mulitple users. So here is my simple code, which I would like
to pass to hiera to specify user name lookup. Appreciate any help,
thanks in advance.
class sudo( $name) {
#Class:: sudo
#
#
package { "sudo": ensure => present, }
file { "/etc/sudoers":
owner => root,
group => root,
2012 Jun 04
15
mysql or postgresql
Hi!
Which database would you recommend to use mysql or postgresql for
puppet?
Estimated number of nodes 30000, they send reports every 30 minutes.
Thanks
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
2012 Feb 17
3
Managing /etc/yum.conf
Hi,
It''s easy enough to modify, say, the "exclude" variable in /etc/yum.conf
with something like:
augeas { yum_exclude_kernel:
context => ''/files/etc/yum.conf/main'',
changes => ''set exclude kernel*''
}
However, I''d like a more flexible system where I can "build" the list of
excludes from
2010 Jun 09
6
Input sought on changing default vardir on OS X.
0.25.5 changed the default vardir from /var/puppet to /var/lib/puppet
and it''s caused the odd issue we have to fix in the Mac pkg
preflights.
After re-reading ''man hier'' I''m tempted to change the default on OS X to:
/var/db/puppet
instead.
/var/ multi-purpose log, temporary, transient, and spool files
...
2012 Mar 16
3
Simple hiera-puppet usage
Hi all,
I am trying to understand how does hiera puppet backend work, so I created the
following example:
hiera.yaml has only:
---
:backends:
- puppet
---
And the node:
node ''testnode'' {
$variable = ''kk''
$thing = hiera ("variable")
notify { "note: $thing": }
}
I don''t want to use the yaml backend for now, just want to
2012 Jun 14
1
facter --yaml leaves some fields blank
Sometimes "facter --yaml" doesn''t list all the values specified on the
command line. I can''t find rhyme nor reason why. Here''s a demo to
show what I mean:
# facter --version
1.5.7
# facter --yaml fqdn macaddress lsbdistcodename
---
fqdn: my.host.name.example.com
lsbdistcodename: squeeze
macaddress: "00:00:00:00:00:00"
We had been using the above
2009 Jun 30
43
Workstations and Certs
I am trying to come up with a workable solution in managing numerous
Mac workstations allowing a high degree of flexibility with regards to
certs.
My puppet environment is setup to application installation on machines
that have been ''imaged'' with a base OS and the puppet and facter apps.
So, when a Mac is ''imaged'' and subsequently re-booted, puppet is run
at
2011 Jul 06
7
Issue with puppet file serving api not parsing yaml content correctly
I am working on building a facter tag based node classifier similar to
https://github.com/jordansissel/puppet-examples/tree/master/nodeless-puppet/.
However, I have run into an issue where I cannot use puppet''s require
file ability to push the yaml file containing the facts file to the
client because it would require two runs of puppet to pickup changes.
Consequently, I have written into
2012 Mar 25
2
Hiera: Bug with false booleans
Hi,
I''ve just run into a small glitch with Hiera.
I have a YAML file that has a definition like this:
puppet_agent_splay: false
but the run fails because of
"err: Could not find data item puppet_agent_splay in any Hiera data
file and no default supplied at
/puppet/modules/puppet/manifests/agent/config.pp:6 on node
slave1.local"
Digging into this it turns out that lookup in
2012 Jul 30
7
puppet enterprise
No problem installing open puppet and using it. patterns run aok.
when trying to use the installer for pe, on the puppetmaster, installs ok.
when trying to use the installer for pe, on the puppet agent, installs ok
but no cert sent as shown by puppet cert list on puppetmaster.
also
puppet agent --test
on puppet agent shows
err: could not retrieve catalog from remote server:
error 400 on
2012 Dec 05
10
Slight oversight in the type documentation
So I was looking at the type reference, and noticed that for a lot of the
types, no namevar was listed. When I checked the types in the code, for
each of those omissions, the namevar was simply "name". Now, it might be
self evident that this is the case, but a little documentation couldn''t
hurt, If not in each type, at least in the section where it describes what
namevars
2012 Feb 10
7
Hiera data unusable in a class with an array parameter
Given the following hiera hash:
common.yaml:
---
*allowed_ips:*
* "First IP": 1.2.3.4*
* "Second IP": 5.6.7.8*
and the module:
*class iptables ($role) {*
* file {/tmp/test:*
* content => template(iptables/test.erb)*
* }*
*}*
with the corresponding template test.erb:
*<% role.each do |role| -%>
*
* code*
*<% end %>*
*<%
2010 Jun 24
8
Passenger barfs.
I have a freshly installed and updated CentOS 5.4 system running
puppet 0.25.5. I followed the passenger docs here:
http://projects.puppetlabs.com/projects/puppet/wiki/Using_Passenger
Upon starting the client, the following appears in the apache error log.
[Thu Jun 24 10:48:40 2010] [error] [client 10.10.4.45] Premature end
of script headers: production
[ pid=6785 file=ext/apache2/Hooks.cpp:706
2012 Feb 22
4
Custom function issue
Hi,
I needed a function to check if a file is existing on the Debian box I
am configuring. So I used this one
module Puppet::Parser::Functions
newfunction(:file_exists, :type => :rvalue) do |args|
if File.exists?(args[0])
return 1
else
return 0
end
end
end
It work greats for some service where apache2 doesn''t work for me.
I am using it this way
2012 Dec 03
4
Unnecessary changes when creating facts.yaml
I have set up puppet to create a facts.yaml file for mcollective using the
following line:
content => inline_template("<%= scope.to_hash.reject { |k,v| k.to_s =~
/(uptime.*|timestamp|.*free|macaddress.*|ipaddress)/ }.to_yaml %>"),
However, it is creating a lot of unnecessary changes by reordering the
facts in the yaml output as you can see in the diff output between to
2012 Feb 01
3
hasstatus return code
Dear community,
I use puppet to deploy iptables on every server.
This is working fine.
In the manifest I defined an iptables service which leads to my init script.
The thing is each time I run puppet I got : notice:
/Stage[main]/Iptables/Service[netfilter]/ensure: ensure changed ''stopped''
to ''running''
I would like to add a status command to my startup script
2012 May 16
7
Puppet Node Create?
Was...
Bash$ puppet node create
This "create" action no longer exists. Has it been depreciated?
Is the only way to create a node through puppetmaser now?
Thanks, D
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/g3lJoO-j_u4J.
To post
2013 Jun 04
11
Share Hiera configuration between 2 nodes?
Hi,
I am trying to use Hiera in puppet 3 and I have two nodes that both need
the same configuration. In this case they are two web servers which have
the same apache configuration.
Rather than creating two seperate hiera files for node1.yaml and node2.yaml
is there a way to group these by role (e.g. webserver.yaml)? I want to
avoid duplicating the configuration if possible and keep the data