R: [Puppet Users] Managing mounted NFS shares, when having no write permission on that share

2018-08-20 Thread Francesco Duranti
You’re not doing anything wrongly.
NFS directory have it’s own ownership and permission and by default it’s 
root:root 777 on netapp storage.
You see them as nfsnobody  because you did not export with “root” permission.

In your example this is what happen:
- First run
o Directory /data/app created with root:root 0755 permission
o Nfs_server:/app mounted over /data/app (now it has 777 permission and 
nfsnobody because you mounted a different directory and the permission are the 
one on the nfs volume/directory).
- Second run
o Puppet will try to change the /data/app to root:root 0755 (it will change the 
permission on the netapp volume/directory in this case). Not sure if this work 
or you should set the export permission for root user on the export 
configuration on netapp.

What you can do to make it work in just one run is to create the directory with 
an exec resource and put the file resource after the mount… something like this:

exec { "mkdir -p /data/app":
  creates => ‘/data/app’,
}

mount { '/data/app':
  ensure  => mounted,
  device   => nfs_server:/app
  dump=> 0,
  fstype=> 'nfs',
  target=> '/etc/fstab',
  notify=> File['/data/app'],
}

file { '/data/app':
  ensure => directory,
  owner => root,
  group  => root,
  mode   => '0755',
}

Da: puppet-users@googlegroups.com  Per conto di 
Mike Langhorst
Inviato: venerdì 17 agosto 2018 23:51
A: Puppet Users 
Oggetto: Re: [Puppet Users] Managing mounted NFS shares, when having no write 
permission on that share

It's v3.

Maybe I'm doing something wrong.

The file { '/data/app'  resource and the nfs share are the same location, so 
when it comes back on subsequent runs, it now sees that file /data/app is no 
longer owned as root and has 777 perms rather than 755


On Friday, August 17, 2018 at 2:30:55 PM UTC-7, Arnau wrote:
Hi,

Are you sure you are mounting nfs v3 and not 4?
Puppet does nothing with the content of the mount so it has to be some 
(missing/wrong) mount option.

HTH,
Arnau

El dv., 17 ag. 2018 , 23:03, Mike Langhorst  va escriure:
I'm having some issues with managing a mount point for an NFS server.  
Specifically when the client system has no root write privileges to that NFS 
share.

I need to mount a NetApp NFS/Cifs share to a filesystem location /data/app.   
So I'll need to manage the file resource /data/app, and as typical the owner 
and mode.

file { '/data/app':
  ensure => directory,
  owner => root,
  group  => root,
  mode   => '0755',
}

mount { '/data/app':
  ensure  => mounted,
  device   => nfs_server:/app
  dump=> 0,
  fstype=> 'nfs',
  target=> '/etc/fstab',
  require  => File['/data/app'],
}


So when I mount this nfs to /data/app,  that share and it's contents are 
nfsnobody, or some other high numbered uid,  with varying permissions, 
sometimes 777.  The NetApp may show 777, but it's applying other ACLs due to 
the CIFS share.  For the different shares I've had to mount, that uid and 
permissions have been different so I couldn't do something like updating the 
module/hiera data to match after the fact as I still wouldn't want that 
underling directory /data/app to be 777.

I don't see anything in the file resource spec to allow for an "onlyif" or such.

Any ideas on how to manage this?
--
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 javascript:.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/c06294e4-21c7-43a8-9c06-1ac8b8c90731%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.
--
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 mailto:puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/cf58c43e-eb27-4379-be2f-bfd88d240a4f%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.



Questo messaggio di posta elettronica contiene informazioni di carattere 
confidenziale rivolte esclusivamente al destinatario sopra indicato. E' vietato 
l'uso, la diffusione, distribuzione o riproduzione da parte di ogni altra 
persona. Nel caso aveste ricevuto questo messaggio di posta elettronica per 
errore, siete pregati di segnalarlo immediatamente al mittente e distruggere 
quanto ricevuto.

This communication may contain privileged or proprietary information for 
receipt and use solely by the addressee(s) named above. If you are not an 
intended recipient, any disclosure, copying or use of this information is 
prohibited. If you have received this communication in error, please delete 
and/or destroy it and kindly notify the sender.

Rispetta l’ambiente, se non è nec

[Puppet Users] Re: Agent installation and status enforcement

2016-11-07 Thread Francesco Raimondi
Understood, I guess I have to find another way to achieve what I want...

Thanks for the rapid response!
Frank

Il giorno lunedì 7 novembre 2016 15:56:11 UTC+1, David Schmitt ha scritto:
>
> Hi Frank,
>
> there are a few ways in which agents can become non-functional (full disk, 
> code error, OOM killer, mismatched incentives in the organization, etc), 
> none of which can be fixed by the (now dysfunctional) agent. The common 
> remediation is monitoring agent reports and investigating nodes that have 
> not reported in within their expected timeframe. Without the capability to 
> address the underlying structural issues, it will remain a game 
> whack-a-mole. 
>
> Good luck, David
>
> On Monday, November 7, 2016 at 2:44:23 PM UTC, Francesco Raimondi wrote:
>>
>> Greetings everyone,
>>
>> Real n00b to puppet here. I was wondering if there's a way to enforce the 
>> presence and the correct execution status of puppet agents. I've correctly 
>> setup a foreman server and added several nodes to it, but I've no control 
>> on someone who may uninstall the puppet agent on the node. I know this 
>> question expose several other issues (non-trusted users should not have 
>> administrative privileges on machines), but these are things beyond my 
>> control. Is there any way I can achieve this with puppet? 
>>
>> Any help would be greatly appreciated,
>> Frank
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/f2928f17-df32-402c-9784-5fd6250d6fac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Agent installation and status enforcement

2016-11-07 Thread Francesco Raimondi
Greetings everyone,

Real n00b to puppet here. I was wondering if there's a way to enforce the 
presence and the correct execution status of puppet agents. I've correctly 
setup a foreman server and added several nodes to it, but I've no control 
on someone who may uninstall the puppet agent on the node. I know this 
question expose several other issues (non-trusted users should not have 
administrative privileges on machines), but these are things beyond my 
control. Is there any way I can achieve this with puppet? 

Any help would be greatly appreciated,
Frank

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b884d3aa-a971-4c83-a9da-834b0edd239d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: chocolatey, windows, powershell and fault bucket

2013-07-23 Thread Francesco Sacchi
I configured it to use my account and it started working without errors..
probably I did not try this one before...

what kind of configuration could the other account miss? maybe the .net 
framework?

anyway thank you for your systematic debugging :D

Il giorno lunedì 22 luglio 2013 16:51:35 UTC+2, Francesco Sacchi ha scritto:
>
> Hi,
> I configured puppet open source with the  chocolatey module and one 
> windows client.
> When the puppet agent run as a service (not the interactive version) I can 
> see in the windows event log some errors like
>
> Fault bucket  1734820220, type 5
> Event name: PowerShell
>
> Fault bucket , type 0
> Event name: PowerShell
>
> I tried to google it but I did not find anything relevant apart from some 
> discussions about running powershell in a thread or something similar..
>
> Any hint on how to fix this?
>
> Thanks
>
> f.
>

-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] chocolatey, windows, powershell and fault bucket

2013-07-22 Thread Francesco Sacchi
Hi,
I configured puppet open source with the  chocolatey module and one windows 
client.
When the puppet agent run as a service (not the interactive version) I can 
see in the windows event log some errors like

Fault bucket  1734820220, type 5
Event name: PowerShell

Fault bucket , type 0
Event name: PowerShell

I tried to google it but I did not find anything relevant apart from some 
discussions about running powershell in a thread or something similar..

Any hint on how to fix this?

Thanks

f.

-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] chocolatey, windows, powershell and fault bucket

2013-07-22 Thread Francesco Sacchi
I have powershell 2.0 and .net framework 4.0 installed.
and if I run puppet_interactive everything works...

Il giorno lunedì 22 luglio 2013 17:16:28 UTC+2, Rob Reynolds ha scritto:
>
> Let's validate your settings. You should have powershell 2.0+ and .net 
> framework 4.0 installed. 
>
> On the box you can quickly validate powershell by opening a command shell 
> and typing powershell.
>
>
>
> --
> Rob Reynolds
> Developer, Puppet Labs
>
> *Join us at PuppetConf 2013, August 22-23 in San Francisco - *
> http://bit.ly/pupconf13*
> **Register now and take advantage of the Final Countdown discount - save 
> 15%!*
>
>
> On Mon, Jul 22, 2013 at 10:09 AM, Francesco Sacchi 
> 
> > wrote:
>
>> I tried both with my own account (which is domain administrator) and with 
>> another (local) administrator..
>>
>> Il giorno lunedì 22 luglio 2013 17:02:32 UTC+2, Rob Reynolds ha scritto:
>>>
>>> What account are you running the service under?
>>>
>>> --
>>> Rob Reynolds
>>> Developer, Puppet Labs
>>>  
>>> *Join us at PuppetConf 2013, August 22-23 in San Francisco - *
>>> http://bit.ly/pupconf13*
>>> **Register now and take advantage of the Final Countdown discount - 
>>> save 15%!*
>>>
>>>
>>> On Mon, Jul 22, 2013 at 9:51 AM, Francesco Sacchi wrote:
>>>
>>>>  Hi,
>>>> I configured puppet open source with the  chocolatey module and one 
>>>> windows client.
>>>> When the puppet agent run as a service (not the interactive version) I 
>>>> can see in the windows event log some errors like
>>>>
>>>> Fault bucket  1734820220, type 5
>>>> Event name: PowerShell
>>>>
>>>> Fault bucket , type 0
>>>> Event name: PowerShell
>>>>
>>>> I tried to google it but I did not find anything relevant apart from 
>>>> some discussions about running powershell in a thread or something 
>>>> similar..
>>>>
>>>> Any hint on how to fix this?
>>>>
>>>> Thanks
>>>>
>>>> f.
>>>>
>>>> -- 
>>>> 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...@**googlegroups.com.
>>>> To post to this group, send email to puppet...@googlegroups.com.
>>>>
>>>> Visit this group at 
>>>> http://groups.google.com/**group/puppet-users<http://groups.google.com/group/puppet-users>
>>>> .
>>>> For more options, visit 
>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>> .
>>>>  
>>>>  
>>>>
>>>
>>>  -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to puppet...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/puppet-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] chocolatey, windows, powershell and fault bucket

2013-07-22 Thread Francesco Sacchi
I tried both with my own account (which is domain administrator) and with 
another (local) administrator..

Il giorno lunedì 22 luglio 2013 17:02:32 UTC+2, Rob Reynolds ha scritto:
>
> What account are you running the service under?
>
> --
> Rob Reynolds
> Developer, Puppet Labs
>
> *Join us at PuppetConf 2013, August 22-23 in San Francisco - *
> http://bit.ly/pupconf13*
> **Register now and take advantage of the Final Countdown discount - save 
> 15%!*
>
>
> On Mon, Jul 22, 2013 at 9:51 AM, Francesco Sacchi 
> 
> > wrote:
>
>> Hi,
>> I configured puppet open source with the  chocolatey module and one 
>> windows client.
>> When the puppet agent run as a service (not the interactive version) I 
>> can see in the windows event log some errors like
>>
>> Fault bucket  1734820220, type 5
>> Event name: PowerShell
>>
>> Fault bucket , type 0
>> Event name: PowerShell
>>
>> I tried to google it but I did not find anything relevant apart from some 
>> discussions about running powershell in a thread or something similar..
>>
>> Any hint on how to fix this?
>>
>> Thanks
>>
>> f.
>>
>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to puppet...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/puppet-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: proxy required

2013-05-15 Thread Francesco
Hy I' ve used  a Yumrepo resource to set up the repository.  I have passed 
the public key with a file resource.
It seems to work now
Thank you thank you again


Il giorno mercoledì 8 maggio 2013 00:39:53 UTC+2, Francesco ha scritto:
>
> Hy I m new to puppet.
> I 'd like to install epel.repo on a my node and this is the module that I 
> ve created
>
> class epel   {
>
>   package { 'epel':
>  provider => 'rpm',
>  ensure => installed,
>  source => '
> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm'
>  }
> }
>
> Now my connection on node when I try to apply configuration is the 
> following
> info: Applying configuration version '1367962540'
> err: /Stage[main]/Epel/Package[epel]/ensure: change from absent to present 
> failed: Execution of '/bin/rpm -i --oldpackage 
> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm' 
> returned 1: curl: (7) couldn't connect to host
> error: skipping 
> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm- 
> transfer failed
>
> If I set a proxy on my linux server it give me error 407 (require 
> authentication)
> How can i setup a proxy in my /etc/puppet/modules/epel/init,pp
> I read of a params.pp , but I cannot understand how to configure it
>
>
> this is my site.pp
> node rllbck02{
> include epel
>
>
> thank you very much and good night
>

-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: proxy required

2013-05-10 Thread Francesco
Excuse me, can anyone help me please . I m going mad...
thank you , thank you, thank you



Il giorno giovedì 9 maggio 2013 11:46:58 UTC+2, Francesco ha scritto:
>
> Excuse again 
> This is the output of my node
> puppet agent --server=puppet.x.x.x. --no-daemonize --verbose --onetime
> info: Caching catalog for rlltas05a.x.x.x.x.
> info: Applying configuration version '1368021386'
> notice: Finished catalog run in 0.01 seconds
>
>
> this is my site.pp
> node 'rlltas05a' {
> #include screen
> #include run
> include epel
> }
>
> and this is my path for epel module
> /etc/puppet/modules/epel/manifests
>
> I ve installed **
> stahnma/epel  with puppet module install 
> procedure<https://forge.puppetlabs.com/stahnma/epel>
> What is my fault?? Nothing happen on my node .an error a fault an 
> exception nothing...
> Thank you in advance for all your precious support
>
> <https://forge.puppetlabs.com/stahnma/epel>
>
>
> Il giorno mercoledì 8 maggio 2013 11:46:45 UTC+2, Francesco ha scritto:
>>
>> Excuse for my question
>> I ve installed module and incuded it in file site pp.
>> But nothin happen
>> Where can i check llog files in puppet?
>> Tahnk you very much again
>> Here you are site .pp
>> node 'rlltas05a
>> #include screen
>> #include run
>> include epel
>>
>>
>>
>> On Wednesday, May 8, 2013 12:39:53 AM UTC+2, Francesco wrote:
>>>
>>> Hy I m new to puppet.
>>> I 'd like to install epel.repo on a my node and this is the module that 
>>> I ve created
>>>
>>> class epel   {
>>>
>>>   package { 'epel':
>>>  provider => 'rpm',
>>>  ensure => installed,
>>>  source => '
>>> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
>>> '
>>>  }
>>> }
>>>
>>> Now my connection on node when I try to apply configuration is the 
>>> following
>>> info: Applying configuration version '1367962540'
>>> err: /Stage[main]/Epel/Package[epel]/ensure: change from absent to 
>>> present failed: Execution of '/bin/rpm -i --oldpackage 
>>> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm' 
>>> returned 1: curl: (7) couldn't connect to host
>>> error: skipping 
>>> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm- 
>>> transfer failed
>>>
>>> If I set a proxy on my linux server it give me error 407 (require 
>>> authentication)
>>> How can i setup a proxy in my /etc/puppet/modules/epel/init,pp
>>> I read of a params.pp , but I cannot understand how to configure it
>>>
>>>
>>> this is my site.pp
>>> node rllbck02{
>>> include epel
>>>
>>>
>>> thank you very much and good night
>>>
>>

-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: proxy required

2013-05-09 Thread Francesco
Excuse again 
This is the output of my node
puppet agent --server=puppet.x.x.x. --no-daemonize --verbose --onetime
info: Caching catalog for rlltas05a.x.x.x.x.
info: Applying configuration version '1368021386'
notice: Finished catalog run in 0.01 seconds


this is my site.pp
node 'rlltas05a' {
#include screen
#include run
include epel
}

and this is my path for epel module
/etc/puppet/modules/epel/manifests

I ve installed **
stahnma/epel  with puppet module install 
procedure<https://forge.puppetlabs.com/stahnma/epel>
What is my fault?? Nothing happen on my node .an error a fault an 
exception nothing...
Thank you in advance for all your precious support

<https://forge.puppetlabs.com/stahnma/epel>


Il giorno mercoledì 8 maggio 2013 11:46:45 UTC+2, Francesco ha scritto:
>
> Excuse for my question
> I ve installed module and incuded it in file site pp.
> But nothin happen
> Where can i check llog files in puppet?
> Tahnk you very much again
> Here you are site .pp
> node 'rlltas05a
> #include screen
> #include run
> include epel
>
>
>
> On Wednesday, May 8, 2013 12:39:53 AM UTC+2, Francesco wrote:
>>
>> Hy I m new to puppet.
>> I 'd like to install epel.repo on a my node and this is the module that I 
>> ve created
>>
>> class epel   {
>>
>>   package { 'epel':
>>  provider => 'rpm',
>>  ensure => installed,
>>  source => '
>> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
>> '
>>  }
>> }
>>
>> Now my connection on node when I try to apply configuration is the 
>> following
>> info: Applying configuration version '1367962540'
>> err: /Stage[main]/Epel/Package[epel]/ensure: change from absent to 
>> present failed: Execution of '/bin/rpm -i --oldpackage 
>> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm' 
>> returned 1: curl: (7) couldn't connect to host
>> error: skipping 
>> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm- 
>> transfer failed
>>
>> If I set a proxy on my linux server it give me error 407 (require 
>> authentication)
>> How can i setup a proxy in my /etc/puppet/modules/epel/init,pp
>> I read of a params.pp , but I cannot understand how to configure it
>>
>>
>> this is my site.pp
>> node rllbck02{
>> include epel
>>
>>
>> thank you very much and good night
>>
>

-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: proxy required

2013-05-08 Thread Francesco
Excuse for my question
I ve installed module and incuded it in file site pp.
But nothin happen
Where can i check llog files in puppet?
Tahnk you very much again
Here you are site .pp
node 'rlltas05a
#include screen
#include run
include epel



On Wednesday, May 8, 2013 12:39:53 AM UTC+2, Francesco wrote:
>
> Hy I m new to puppet.
> I 'd like to install epel.repo on a my node and this is the module that I 
> ve created
>
> class epel   {
>
>   package { 'epel':
>  provider => 'rpm',
>  ensure => installed,
>  source => '
> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm'
>  }
> }
>
> Now my connection on node when I try to apply configuration is the 
> following
> info: Applying configuration version '1367962540'
> err: /Stage[main]/Epel/Package[epel]/ensure: change from absent to present 
> failed: Execution of '/bin/rpm -i --oldpackage 
> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm' 
> returned 1: curl: (7) couldn't connect to host
> error: skipping 
> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm- 
> transfer failed
>
> If I set a proxy on my linux server it give me error 407 (require 
> authentication)
> How can i setup a proxy in my /etc/puppet/modules/epel/init,pp
> I read of a params.pp , but I cannot understand how to configure it
>
>
> this is my site.pp
> node rllbck02{
> include epel
>
>
> thank you very much and good night
>

-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] proxy required

2013-05-07 Thread Francesco
Hy I m new to puppet.
I 'd like to install epel.repo on a my node and this is the module that I 
ve created

class epel   {

  package { 'epel':
 provider => 'rpm',
 ensure => installed,
 source => 
'http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm'
 }
}

Now my connection on node when I try to apply configuration is the following
info: Applying configuration version '1367962540'
err: /Stage[main]/Epel/Package[epel]/ensure: change from absent to present 
failed: Execution of '/bin/rpm -i --oldpackage 
http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm' 
returned 1: curl: (7) couldn't connect to host
error: skipping 
http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm - 
transfer failed

If I set a proxy on my linux server it give me error 407 (require 
authentication)
How can i setup a proxy in my /etc/puppet/modules/epel/init,pp
I read of a params.pp , but I cannot understand how to configure it


this is my site.pp
node rllbck02{
include epel


thank you very much and good night

-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: push puppet agent from dashboard

2013-04-14 Thread Francesco

yes I mean what you have explayed to me
Ok , for this reason, I have to find another mannet to deploy agent on 
client
Thank you again




Il giorno sabato 13 aprile 2013 11:41:55 UTC+2, Francesco ha scritto:
>
> Excuse me When I add node from the dashboard is there any possibility to 
> push puppet-agent to the client ??
> Thank you in advance!!!
> Francesco
>
>

-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] push puppet agent from dashboard

2013-04-13 Thread Francesco
Excuse me When I add node from the dashboard is there any possibility to 
push puppet-agent to the client ??
Thank you in advance!!!
Francesco

-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: puppet uninstall package

2013-04-09 Thread Francesco
Now eureka I have uninstall screen with rpm and I have created the 
following 
I begun from screen installation again :)))
/etc/puppet/modules/screen/manifests/init.pp

class screen {

  package { 'screen':
ensure => 'present'
}
}

under this path I ve declared class

/etc/puppet/manifests/site.pp

John I hope to understand what you are trying to say to me

But where I can define which packet must have a node rather than another
Example where can i set if node 1 can have screen an node 2 can have vim 
but not screen and node 3 apache and not vim?? perhups in node.pp ??
Thank you in advance and to Andy too

#import 'nodes.pp'
$puppetserver = 'puppet.xxx.xxx.xxx.it'

node default {
include 'screen'

include 'sudo'
}

node 'lurtz.interno.regione.lazio.it' {
include screen
}




Il giorno lunedì 8 aprile 2013 10:46:40 UTC+2, Francesco ha scritto:
>
> Hy I m a new user in world puppet
> I have installed a packge test on a node "screen" without problem
> Now i want to try to uninstall it but without success. This is the file 
> configuration
> this is my file init.pp
> package {"screen-4.0.3-16.el6":
> ensure=> "absent"
> }
>
> #package and purge its config files
> package {"screen-4.0.3-16.el6":
> ensure => "purged"
> }
>
> this is the path of my manifest /etc/puppet/modules/screen/manifests
> this is the command that I execute to remove package screen
>  puppet agent --server=puppet..I
>
> this is the answer
>
> Info: Retrieving plugin
> Info: Caching catalog for node.xx.xx.x
> Info: Applying configuration version '1365406267'
> Notice: Finished catalog run in 0.08 seconds
> Effectively screen is already installed
>
> Thank you in advance
> I m going mad
>
> Cheers
>
>
>
>
>
>
>

-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] puppet uninstall package

2013-04-08 Thread Francesco Fragolino
Hy I m a new user in world puppet
I have installed a packge test on a node "screen" without problem
Now i want to try to uninstall it but without success. This is the file 
configuration
this is my file init.pp
package {"screen-4.0.3-16.el6":
ensure=> "absent"
}

#package and purge its config files
package {"screen-4.0.3-16.el6":
ensure => "purged"
}

this is the path of my manifest /etc/puppet/modules/screen/manifests
this is the command that I execute to remove package screen
 puppet agent --server=puppet..I

this is the answer

Info: Retrieving plugin
Info: Caching catalog for node.xx.xx.x
Info: Applying configuration version '1365406267'
Notice: Finished catalog run in 0.08 seconds
Effectively screen is already installed

Thank you in advance
I m going mad

Cheers






-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.