[Puppet Users] Duplicate declaration

2018-09-07 Thread Ugo Bellavance
Hi, I have made a module, a long time ago, that allows me to create directories and httpd config files. My pattern is /var/www/dev/$devuser/$clientname/$appname/ It worked perfectly until I ended up having more than one $appname for the same $clientname. Here's the error message I get: Error:

[Puppet Users] Duplicate declaration

2013-11-27 Thread Raj kumar V
I have module, for which if I add the class in the UI and run the agent with --test it fails with the following error. But If I just add the include in the init class and run, it works. Any idea? Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration:

[Puppet Users] Duplicate declaration error

2018-06-08 Thread Clemens Bergmann
Hi There, I have a "can not redeclare" error that I do not understand. I try to write my own apache::vhost defined type with sane defaults for my environment. The general class layout is as follows: class vhost::vhost1 { custom::apache::vhost{ #parameters } } class vhost::vhost2 { custom:

Re: [Puppet Users] Duplicate declaration

2018-09-07 Thread 'Dan White' via Puppet Users
Separate the client base directory resource from the application directory resource. When declaring each application directory, add a “require” parameter with a value of the client base directory. "Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is th

Re: [Puppet Users] Duplicate declaration

2018-09-09 Thread Ugo Bellavance
On Friday, September 7, 2018 at 5:37:29 PM UTC-4, LinuxDan wrote: > > Separate the client base directory resource from the application directory > resource. > > When declaring each application directory, add a “require” parameter with > a value of the client base directory. > > Thank you for

[Puppet Users] Duplicate declaration: Exec

2020-09-01 Thread Helmut Schneider
Hi, /etc/puppetlabs/code/modules/amavisd/manifests/init.pp ensure_resource('exec', '/usr/local/bin/amavisd.sh -sP', { path => '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin', refreshonly => true, command => 'su -l root -c "/usr/local/bin/amavisd.sh -sP"', }) One client reports: Server Err

[Puppet Users] Duplicate declaration problem

2014-04-21 Thread Sean Korten
So, I am trying to do something with a list (array) of users from hieara. Here is the yaml: profile::sysconfig::sftp_users: [ "joe", "bill", "nancy" ] In my profile I have a defined class "debugUsers" that I am calling with the array I got from hiera: class profile::sysconfig::sftpserver { >

Re: [Puppet Users] Duplicate declaration error

2018-06-08 Thread Priyo Phan
I think it is due to the Apache class being called inside your defined type, it is being called more than once when you try to create more than 1 vhost. On Fri, Jun 8, 2018, 15:40 Clemens Bergmann wrote: > Hi There, > > I have a "can not redeclare" error that I do not understand. > > I try to wr

Re: [Puppet Users] Duplicate declaration: Exec

2020-09-01 Thread Daniel Krämer
That is a limitation of ensure_resource() i'm also experiencing. For example: ❯ cat modules/profile/manifests/test1.pp class profile::test1 { include profile::test3 include profile::test2 } ❯ cat modules/profile/manifests/test2.pp class profile::test2 { notify{"i'm a test":} } ❯ cat modules/

[Puppet Users] Duplicate declaration for files.

2013-10-11 Thread mike
Hello, I'm configuring my linux server with puppet open and is ok. My question is the next; I've a declared in mi nodes.pp the next: [.] node 'basenode' { include 'baseos' include 'motd' import 'useradd.pp' } #All nodes for my domain node /.*\.example\.com/ i

[Puppet Users] Duplicate declaration - hard to find...

2016-09-21 Thread Ugo Bellavance
Hi, I'm getting this error message when I run a puppet noop: Error 400 on SERVER: Duplicate declaration: File[/var/www/atd/src/agtweb] is already declared in file /etc/puppet/modules/apache/manifests/varwwwatdsrcapp.pp at line 17; cannot redeclare at /etc/puppet/modules/apache/manifests/varwww

[Puppet Users] Duplicate declaration with nested create_resources

2014-07-10 Thread Joao Morais
Hello list, I have some services that may be duplicated in some machines. They are much like an Apache vhost. In order to remove details from my manifests, I moved the service names to ENC because they are machine-dependent. Here are my datasources and manifests: ENC: parameters: myservices:

Re: [Puppet Users] Duplicate declaration - hard to find...

2016-09-21 Thread R.I.Pienaar
- Original Message - > From: "Ugo Bellavance" > To: "puppet-users" > Sent: Wednesday, 21 September, 2016 14:29:50 > Subject: [Puppet Users] Duplicate declaration - hard to find... > Hi, > > I'm getting this error message when I run a pu

Re: [Puppet Users] Duplicate declaration - hard to find...

2016-09-21 Thread Ugo Bellavance
> > > in a define all resources have to have unique names, error says in some > case > you do not. So you're either attempting to make 2 instances where > application > is 'agtweb' or something else, > > Show the actual code. And the actual code where you make 'agtweb' > application. > > S

Re: [Puppet Users] Duplicate declaration - hard to find...

2016-09-21 Thread R.I.Pienaar
- Original Message - > From: "Ugo Bellavance" > To: "puppet-users" > Sent: Wednesday, 21 September, 2016 14:51:00 > Subject: Re: [Puppet Users] Duplicate declaration - hard to find... >> >> >> in a define all resources have to have

Re: [Puppet Users] Duplicate declaration - hard to find...

2016-09-21 Thread Ugo Bellavance
I found the problem by making the classe temporarily non-parameterized and it threw an error "Invalid parameter application". I called this class in another file. I'll fix that up. Thanks for your help! Ugo -- You received this message because you are subscribed to the Google Groups "Puppe

[Puppet Users] Duplicate declaration - class is already declared

2015-09-11 Thread Julian Meier
Hi all I’ve got three classes (example): ``` class mymodule ( $user = 'foobar', ) {} class mymodule::classone ( $foo = 'bar', ) inherits ::mymodule::classone::params { require mymodule notify { "username: ${::mymodule::user}": } } class mymodule::classtwo ( $foo = 'bar', ) inherits ::

Re: [Puppet Users] Duplicate declaration - class is already declared

2015-09-15 Thread Julian Meier
Thanks you! The explanation about private and public classes is just great! So, there seems to be no way to define IN the module how public classes get evaluated (order), right? I really want to use some params from `::ospuppet` in `::ospuppet::master` and `::ospuppet::server` (https://github.co

Re: [Puppet Users] Duplicate declaration - class is already declared

2015-09-16 Thread jcbollinger
On Tuesday, September 15, 2015 at 2:33:16 PM UTC-5, Julian Meier wrote: > > Thanks you! The explanation about private and public classes is just great! > > So, there seems to be no way to define IN the module how public classes > get evaluated (order), right? > Evaluation order is deterministi

[Puppet Users] Duplicate declaration error - what's the correct approach to avoid this?

2017-11-23 Thread buoyant_puppy
Why does this: class mymodule { notify { "booboo": } notify { "booboo": } provoke the error: Error while evaluating a Resource Statement, Duplicate declaration: Notify[booboo] is already declared in file That's is a simplified version of my actual use case: $mythings.each |

Re: [Puppet Users] Duplicate declaration error - what's the correct approach to avoid this?

2017-11-23 Thread Dirk Heinrichs
Am 23.11.2017 um 15:47 schrieb buoyant_puppy: > That's is a simplified version of my actual use case: >   $mythings.each | String $x | {    # for each x in list 'mythings' >     notify { "gonna do something with $x": } >   Not sure, but I think you need to use ${x} in the resource declara

Re: [Puppet Users] Duplicate declaration error - what's the correct approach to avoid this?

2017-11-24 Thread Dirk Heinrichs
Am 23.11.2017 um 15:47 schrieb buoyant_puppy: > That's is a simplified version of my actual use case: >   $mythings.each | String $x | {    # for each x in list 'mythings' >     notify { "gonna do something with $x": } >   Not sure, but I think you need to use ${x} in the resource declara

[Puppet Users] Duplicate Declaration of resource (editing contents of same file in two diiferent module)

2013-04-11 Thread Rahul Khengare
Hi all, I am writing two modules abc and xyz. In both the modules i have to change common "test.txt" file,here i use template (.erb) file to changing the contents. In both abc and xyz the contents of "test.txt" file is different, if i declare file resource for "test.txt" file in two differe