FAQ
hi everyone,

my *site.pp* looks like this:


node "server.my.fqdn" {
    class { "puppet_agent": }
    class {"base_config:
                      require=>Class["puppet_agent"]
              }
}

im trying to achieve that the "puppet_agent" module is applied before the
"base config" modules.

however, the puppet_agent module gets installed LAST.

any ideas?

--
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+unsubscribe@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.

Search Discussions

  • Sneha More at Jul 23, 2013 at 11:49 am
    Hi,
       I think require=>Class[...] works only for class files in module, it does
    not work for modules.
       You can try this:
        node "server.my.fqdn" {
        stage{ 'first': }
        stage{ 'second': }
        Stage[first]->Stage[second]
          class { "puppet_agent":
             stage => first,
          }
          class {"base_config:
                 stage => second,
                  }
       }

      Regards,
      Sneha More.
      NTT DATA GTS.(OSS Centre)


    On Monday, July 22, 2013 9:40:53 PM UTC+5:30, cko wrote:

    hi everyone,

    my *site.pp* looks like this:


    node "server.my.fqdn" {
    class { "puppet_agent": }
    class {"base_config:
    require=>Class["puppet_agent"]
    }
    }

    im trying to achieve that the "puppet_agent" module is applied before the
    "base config" modules.

    however, the puppet_agent module gets installed LAST.

    any ideas?
    --
    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+unsubscribe@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.
  • Jcbollinger at Jul 29, 2013 at 4:20 pm

    On Monday, July 22, 2013 11:10:53 AM UTC-5, cko wrote:
    hi everyone,

    my *site.pp* looks like this:


    node "server.my.fqdn" {
    class { "puppet_agent": }
    class {"base_config:
    require=>Class["puppet_agent"]
    }
    }

    im trying to achieve that the "puppet_agent" module is applied before the
    "base config" modules.

    however, the puppet_agent module gets installed LAST.

    any ideas?
    Yes. You are probably mistaken about the order in which the classes
    themselves are applied. Instead, you almost certainly have a containment
    problem. The symptom you would have noticed is that one or more classes
    (but not any resources) declared by class 'puppet_agent' are applied after
    one or more classes (but not any resources) declared by class base_config.
    In brief, if you search the archives of this group for "containment" and
    "anchor pattern" (the latter being the usual solution) then you should find
    lots of relevant information.

    If you remain uncertain about whether yours is a containment problem, then
    post your classes and the output from which you concluded that ordering was
    not working correctly.

    Also, relationships work the same for all classes, including module-level
    classes such as yours. Run stages would be a rather heavy-handed solution
    to your problem, and they sometimes cause more problems than they solve.


    John

    --
    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+unsubscribe@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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedJul 22, '13 at 4:10p
activeJul 29, '13 at 4:20p
posts3
users3
websitepuppetlabs.com

3 users in discussion

Sneha More: 1 post Jcbollinger: 1 post Cko: 1 post

People

Translate

site design / logo © 2021 Grokbase