I would like to use condition in a template with puppet 3.x.
In my params.pp :
$domain=test.org
$use_app = True
In my manifest :
class myapp::config {
require params
file { "/opt/myapp/config/app.conf":
mode=> '0644',
content => template("myapp/app.conf.erb"),
}
<% if $use_app == "False" %>
Be aware of the double equal signs
On 06/04/2013 12:58 PM, AVE1810 wrote:
I would like to use condition in a template with puppet 3.x.
In my params.pp :
$domain=test.org
$use_app = True
In my manifest :
class myapp::config {
require params
file { "/o
Hello,
What would you think of moving database, database_grant and database_user
types and providers from puppetlabs-mysql to its own module
(puppetlabs-dbproviders for example) so that we can develop providers for
others RDBMS ?
I'd like to develop providers for postgresql, so I think it make
Hi,
My brain is hurting a bit over this one. How does one delete ypbind cleanly
from a RHEL6 box? It has a dep of yp-tools. No problem...I add both to the
uninstall list in hiera;
packages_oel6_absent:
- ypbind
- yp-tools
SNIP from manifest;
$pack
It works now. Thank you for the answer !
Le mardi 4 juin 2013 13:59:57 UTC+2, Johan De Wit a écrit :
>
> <% if $use_app == "False" %>
>
> Be aware of the double equal signs
>
>
>
>
> On 06/04/2013 12:58 PM, AVE1810 wrote:
>
> I would like to use condition in a template with puppet 3.x.
>
> In
Thank you for the help, I got it after changing 'apache' to 'httpd'. I'm
still working on seeing the whole picture and learning command line as I
go. I really appreciate it. On the ssh_authorized_key!
On Monday, June 3, 2013 1:47:43 PM UTC-5, Nick Fagerlund wrote:
>
> Hi Alexandra,
>
> Attempt
On Thursday, May 30, 2013 12:32:05 PM UTC-5, Stan wrote:
>
> Hello
>
> Here is my manifest for snmpd, my problem now is that my manifest will run
> every time because my snmpd.conf file changes after the "exec"!! I want
> that my manifest run when the snmpd.conf (only snmpd.conf source and not
On Thursday, May 30, 2013 10:39:27 AM UTC-5, R.I. Pienaar wrote:
>
>
> stages is generally just bad and you should find better ways to do what
> you
> want, maybe using chaining or something else.
>
>
+1
Really. Stages are a very blunt tool. If you try to do anything very
complicated with
On Sunday, June 2, 2013 5:05:23 PM UTC-5, Rudy Gevaert wrote:
>
> Hi,
>
> I'm looking into using puppet master --compile to set up some tests.
> However it's unclean how I can use this:
>
> - do I *need* to run this on the master?
>
You need to run it on a system that has all the Puppet man
On Tuesday, June 4, 2013 7:18:26 AM UTC-5, Stephen Wallace wrote:
>
> Hi,
>
> My brain is hurting a bit over this one. How does one delete ypbind
> cleanly from a RHEL6 box? It has a dep of yp-tools. No problem...I add both
> to the uninstall list in hiera;
>
> packages_oel6_absent:
>
>
On Tuesday, June 4, 2013 1:22:08 AM UTC-5, Tom Lanyon wrote:
>
> I'm testing a 'cleanup' stage which runs after Stage[main] and removes a
> bunch of package resources.
>
> To do this, I tried a simple check of defined(Package[]) combined
> with a custom facter fact (called 'app_packages'):
>
On Monday, June 3, 2013 10:45:27 AM UTC-5, Mike Schmidt wrote:
>
> I am running puppet 3.2.1, using the puppetlabs repos, on centos 6.4. I
> keep getting these messages in the log: (every 30 minutes)
>
> Jun 3 11:24:55 yoda puppet-master[20292]: Failed to set SELinux context
> system_u:object_
I am using the MSSQL server module from puppet as a baseline for the
installation of SQL Server 2012, and am running into issues durring the
install. It gets a lot of the way done, and issues this error:
Error: \\puppet\installs\SQLServer2012SP1\setup.exe
/CONFIGURATIONFILE=C:\sql201
2.config.ini
Pete,
thank you for suggestions. As for my environments: the users example is
just an example.
The same problem exists when I want to apply other config settings to
subset of servers.
We use The Foreman so this is one option. In general I wanted to ask you if
you could share your experience
re
I have my puppet defined as (pseudo code)
class A {
exec { somethingA:
}
}
class B {
exec { somethinB:
}
}
Class['A'] -> Class['B']
the exec{ somethingA: } is actually failed on my setup, I was expecting the
whole puppet transaction would fail. To my surprise, class B s
Hi guys,
After upgrading my puppetmaster from 3.1.1 to 3.2.1 I'm getting the error
below:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Failed to parse template dashboard/passenger-vhost.erb:
Filepath: /usr/lib/ruby/vendor_ruby/puppet/parser/templatewrapper.rb
L
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 rol
Hi Mickael,
Do you think there's enough overlap in behavior to support this? That was
the original idea behind making the types generic in the puppetlabs/mysql
module but the puppetlabs/postgresql module went in the direction of making
the type and provider specific to that tech. It's really a str
You could set a custom "role" fact on node1 and node2 with the value
"webserver" and then use the "role" fact in your Hiera hierarchy.
For example using facter.d on on node1 and node2:
# cd /etc/facter/facts.d
# echo 'role: webserver' >> custom_facts.yaml
# facter -p role
role => webserver
and o
On Tuesday, June 4, 2013 11:22:22 AM UTC-4, jcbollinger wrote:
>
>
> It's not the cause of your problem, but the master should NOT run as
> root. There is no reason why it should need special privilege to do its
> work, therefore good security practices dictate that it run without such
> priv
That worked thanks!
On Tuesday, June 4, 2013 2:09:48 PM UTC-6, Keith Burdis wrote:
>
> You could set a custom "role" fact on node1 and node2 with the value
> "webserver" and then use the "role" fact in your Hiera hierarchy.
>
> For example using facter.d on on node1 and node2:
>
> # cd /etc/facte
Thanks for the feedback!
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-u
I found out that the interfaces which is being configured should be in
"switchport mode access" which has to be done manually (by login to switch)
as of now.
It would have been great if puppet could do this too (atleast I'm not aware
of this).
Vatsa
On Monday, 3 June 2013 10:55:32 UTC-7, sriv
Hi John,
Thanks for the reply.
On 05/06/2013, at 12:33 AM, jcbollinger wrote:
> On Tuesday, June 4, 2013 1:22:08 AM UTC-5, Tom Lanyon wrote:
> I'm testing a 'cleanup' stage which runs after Stage[main] and removes a
> bunch of package resources.
>
> To do this, I tried a simple check of defin
On Tue, Jun 4, 2013 at 7:12 AM, jcbollinger wrote:
> - what are the exit statuses that I need to catch?
>>
>
> Others will have more specific information there, but I would expect to
> see status 0 if compilation is successful, else nonzero.
>
Not sure this is all that reliable, yes it will catch
- Original Message -
| Hi,
| My brain is hurting a bit over this one. How does one delete ypbind
| cleanly from a RHEL6 box? It has a dep of yp-tools. No problem...I
| add both to the uninstall list in hiera;
| packages_oel6_absent:
|
| - ypbind
| - yp-tools
| SNIP from manifest;
| $p
26 matches
Mail list logo