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:
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:
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:
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
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
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
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 {
>
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
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/
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
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
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:
- 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
>
>
> 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
- 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
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
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 ::
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
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
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 |
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
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
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
23 matches
Mail list logo