Displaying 20 results from an estimated 10000 matches similar to: "Duplicate declaration for invoking a class"
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
2012 Dec 21
1
Hiera and 'clientcert' fact not working :(
Morning All
I''m trying to use Hiera with Puppet 3.0 to streamline some of my module
configuration...
However I''m having issues using the ''*%{::clientcert}*'' variable as part of
the hierarchy...
Currently, my *hiera.yaml* file looks like:
---
:backends:
- yaml
- json
:yaml:
:datadir: /etc/puppet/hieradata
:json:
:datadir: /etc/puppet/hieradata
2012 Nov 20
2
hiera values issue
Hi, I have a puppetmaster - agent architecture. I have a module for the
vsftpd configuracion in the agents. The configuration of the value
''max_per_ip'' in the agents may vary. This is a line of the manifest:
$max_per_ip = hiera(''max_per_ip'',10)
I want to specify different values for each agent using hiera. The problem
is I am only able to specify the
2012 Mar 28
2
retrieving module directory
Hi everyone,
I have a puppet master/client infrastructure setup with apache. When on the
same datacenter I don''t have any problem.
I am trying to use another datacenter, so I setup the fileserver.conf as
followed:
# Files in the /path/to/files directory will be served
# at puppet:///mount_point/.
[modules]
allow *.datacenter1
allow *.datacenter2
[plugins]
2013 Jan 22
6
Security considerations for basing decisions on facts
Hello,
Let''s consider the scenario when a client node in a puppet environment
gets compromised.
In case some of the puppet modules make decisions based on agent facts,
these modules are potentially exposed to abuse from the malicious puppet
agent.
For example, if a class has:
if $some_fact == ''some value'' {
# deploy some configuration
}
then the compromised node
2012 Oct 04
4
Puppet 3.0 + Inventory search
Hello,
I am having problems with Puppet since upgrading to 3.0.0.
When I call an inventory search I get a Error 400. I have used dashboard +
Perl
Oct 4 08:58:43 puppet01 puppet-master[7008]: Handling request: GET
/production/facts_search/search?facts.lsbdistcodename.eq=lenny
Oct 4 08:58:43 puppet01 puppet-master[7008]: header too long
ii facter
2012 Jul 11
6
certname doesn't seem to work on the agent
Hi guys,
I have a box that needs to identify itself to the puppetmaster as something
different from the FQDN. I added certname to the agent configuration before
the first run, but it doesn''t seem to be sufficient. The certificate was
generated for the FQDN, and the host appears in the dashboard as the FQDN,
and the node name used to evaluate the manifest is also the FQDN. I would
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
2013 Jul 29
2
puppet apply --hiera_config --> Error: Could not find class
Hi there,
I''m running into an problem which I can resolve. It is bugging me for
couple of days now.
Goal: CentOS 6.4 freshly installed incl puppet 3.2.3 and I want to install
puppet master, puppetdb, mod_passenger & apache with "puppet apply". So
when this is complete, I should have an puppet master server running so I
can create new hosts etc.
So this is the command
2012 Apr 25
2
Unable to import a manifest file from a different directory to the one where site.pp is located using environments
Hi List,
Puppet Version: v2.7.13
Question - If I correctly setup multiple manifestdir''s in the puppet.conf
file how can I import a node pp file located in a different directory tree
to site.pp?
My configuration information is below.
In my puppet.conf file I have setup an environment called "stable", within
this environment I have setup the manifestdir, modulepath and
2013 Dec 13
2
New to puppet and recieving mcollective error
Im new to puppet and installed it in my home lab to mess with, when i
installed it i used the hostname rather than FQDN so went back and changed
puppet and reran the certificate tool to regenerate the certificates etc,
the agent works fine now but i am getting an mccollective error i think, is
there anything in the config i need to change for mccollective after
altering the name to the FQDN?
2009 May 12
8
Configuring hosts with data from other hosts
So I want to use facts from one host in the configuration of other
hosts.
Trivial example: setting restrict lines in ntp.conf to allow a
monitoring host to query ntpd on remote hosts.
So if the monitoring host boots with IP 10.2.2.3 (which may change
regularly), and it knows its the monitor host (via some customer
facter plugins), I want some global variable to be available
2013 May 14
3
PuppetDB "Failed to submit 'replace facts' command"
I have a small environment with a single puppetmaster and puppetdb on the same node that I get sporadic "Failed to submit ''replace facts'' command" errors from nodes. It isn''t consistent about which nodes are causing the error and I can''t find anything else going on at the same time on either the master or the agent that these errors happen.
Here
2011 Dec 06
1
module can't find other modules
I have these three modules with the following structure:
|-- modules
| |-- create_resources
| | |-- LICENSE
| | |-- Modulefile
| | |-- README
| | |-- lib
| | | `-- puppet
| | | `-- parser
| | | `-- functions
| | | `-- create_resources.rb
| | |-- spec
| | | |-- spec.opts
| | | |-- spec_helper.rb
| | | `-- unit
2013 Mar 04
4
Problem while Installing software (agent) from puppetmaster to clients
I had installed puppet master and client on two different machines. machine
A has puppet master and machine B has client. both are centos6 64 bit
machines.
Machine B (client) is successfully connected to master (machine A). My aim
is to install New Relic agent (server monitorinig tool) on different
clients. I had installed new relic agent on machine A and trying to build a
module so that I
2013 Mar 21
6
How we can create two database Using same credetial using Puppet
Hello All,
I wanted to create two two MySQL database with same user credential using
Puppet-MySQL. How can I achieve this? Please find my script below.
class mysql::vsdatabase {
include mysql
mysql::db { ''vidispine'':
user => ''user'',
password => ''user123'',
host => ''db.<hostname>.com'',
}
}
How can I add
2008 Jan 17
5
A function can always run when a client connect to the pupetmaster?
hello,all
I write a function. this function will write the client fqdn to a
file. But this function only run one time when the puppetmaster
recompile the configuration.
How can let this function run every time when a client connect to
the puppetmaster ? please help me.
--
Huang Mingyou
2012 Nov 05
9
puppetdb postgresql Connection refused
Greetings,
we are trying to setup puppetdb, nut our clients get the following error:
Warning: Unable to fetch my node definition, but the agent run will
continue:
Warning: Error 400 on SERVER: Could not retrieve facts for lxa7t.unix.lan:
Failed to submit ''replace facts'' command for lxa7t.unix.lan to PuppetDB at
puppetdb:8081: Connection refused - connect(2)
Info: Retrieving
2013 Sep 11
6
Puppet ignores hiera completely
I''m not sure at all what''s going on here, but I''ve spent a lot of time
reading over the puppet hiera docs and setting everything up, but when I
run puppet agent it just seems to ignore the hiera setup completely.
Both the puppet master and agent nodes have exactly the same versions of
puppet and hiera (installed via the official puppet APT repository). I''ve
2008 Dec 04
4
puppetmaster built via puppetd
hi,
i''m trying to set up my puppetmaster infrastructure with multiple
puppetservers behind load balancers in each of our datacenters. i''m
using 0.24.6. i''ve read the howto on puppet scalability, and i think
i''ve got the ssl config working correct, but i''m noticing that when
puppetd is used to build a puppetmaster, some of the files in $vardir/
ssl