Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I recommend reading over Relationships and Order. But essentially you could try the "->" chaining arrow. Your code would look something like this.

#Run Group
group { 'jboss':
        ensure => 'present',
        gid    => "501",
    } -> # and then
    exec { "modify etc_group":
        command => "/bin/sed -i -e '<regex>' /etc/group",
        path    => "/bin:/usr/bin",
        unless  => "<condition>",
    }

I recommend reading over Relationships and Order. But essentially you could try the "->" chaining arrow. Your code would look something like this.

#Run Group
Group 
group { 'jboss':
        ensure => 'present',
        gid    => "501",
    } -> # and then
then 
    exec { "modify etc_group":
        command => "/bin/sed -i -e '<regex>' /etc/group",
        path    => "/bin:/usr/bin",
        unless  => "<condition>",
    }

I recommend reading over Relationships and OrderOrdering. But essentially you could try the "->" chaining arrow. Your code would look something like this.

#Run Group 
group { 'jboss':
        ensure => 'present',
        gid    => "501",
    } -> # and then 
    exec { "modify etc_group":
        command => "/bin/sed -i -e '<regex>' /etc/group",
        path    => "/bin:/usr/bin",
        unless  => "<condition>",
    }