[Puppet Users] augeas with puppet : cannot update line

2014-04-22 Thread cheniour ghassen
Hi everyone, I am new in puppet. In fact i am trying to update bind-address in the mysql file '/etc/mysql/my.cnf i wrote the this code in manifests/nodes.pp augeas { 'update-bind-address': >> context => '/files/etc/mysql/my.cnf', >> changes => ['setbind-adress 192.168.80.135'], >> } >

[Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread cheniour ghassen
Hi everyone, In some place of my puppet script i need to direct the output of a command as an argument to another one. the commands are > exec { 'create-endpoint': > > command => "id = $( /usr/bin/keystone --os-token=admin > --os-endpoint=http://master:35357/v2.0 service-list | /bin/grep glan

Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread cheniour ghassen
Hi Dirk, i tried to escape but this doesn't work . thanks On Mon, May 26, 2014 at 3:15 PM, Dirk Heinrichs wrote: > Am 26.05.2014 15:09, schrieb cheniour ghassen: > > but puppet seems to not understand $2. > > > Because it's an awk variable. You need to escape it s

Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread cheniour ghassen
Hi Dirk, This is a quite a good idea (to escape using ' rather than "). I will try it. Thanks a lot. Sincerely, Ghassen Cheinour. On Mon, May 26, 2014 at 3:30 PM, Dirk Heinrichs wrote: > Am 26.05.2014 15:24, schrieb Dirk Heinrichs: > > Am 26.05.2014 15:18, schrieb chen

[Puppet Users] modelling languages puppet

2014-06-13 Thread cheniour ghassen
Hi everyone, I have developed a puppet script for automating openstack configurations. Now i have to make UML diagrams to model my puppet script. I need to make a class diagram. But i didn't figure how because i have modules and not packages, i have defines and not functions... So my question is wh