Puppet agent doesn't run manifest from regexp

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












node 'node-slave01' 
include repo::git
include fun::cmatrix

node 'node-slave02'
include repo::hg
include fun::toilet

node 'node-slave03'
include fun::rup
include repo::svn
include fun::cmatrix

node 'node-slave04'
include repo::git
include repo::hg
include repo::svn
include fun::cmatrix
include fun::toilet

node /node-slaved+/
include lamp
include test
include fun::rup
include sup



So everything in /node-slaved+/ doesn't run. If I take the sup module and put it under any of the 4 nodes, it runs after I write sudo puppet agent --test, but not if it's under the regexp.



How do I do it if I want to have certain nodes do certain things, but there are some commands that I want all of them to do? Writing include sup under every node seems extremely annoying.










share|improve this question

























    up vote
    0
    down vote

    favorite












    node 'node-slave01' 
    include repo::git
    include fun::cmatrix

    node 'node-slave02'
    include repo::hg
    include fun::toilet

    node 'node-slave03'
    include fun::rup
    include repo::svn
    include fun::cmatrix

    node 'node-slave04'
    include repo::git
    include repo::hg
    include repo::svn
    include fun::cmatrix
    include fun::toilet

    node /node-slaved+/
    include lamp
    include test
    include fun::rup
    include sup



    So everything in /node-slaved+/ doesn't run. If I take the sup module and put it under any of the 4 nodes, it runs after I write sudo puppet agent --test, but not if it's under the regexp.



    How do I do it if I want to have certain nodes do certain things, but there are some commands that I want all of them to do? Writing include sup under every node seems extremely annoying.










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      node 'node-slave01' 
      include repo::git
      include fun::cmatrix

      node 'node-slave02'
      include repo::hg
      include fun::toilet

      node 'node-slave03'
      include fun::rup
      include repo::svn
      include fun::cmatrix

      node 'node-slave04'
      include repo::git
      include repo::hg
      include repo::svn
      include fun::cmatrix
      include fun::toilet

      node /node-slaved+/
      include lamp
      include test
      include fun::rup
      include sup



      So everything in /node-slaved+/ doesn't run. If I take the sup module and put it under any of the 4 nodes, it runs after I write sudo puppet agent --test, but not if it's under the regexp.



      How do I do it if I want to have certain nodes do certain things, but there are some commands that I want all of them to do? Writing include sup under every node seems extremely annoying.










      share|improve this question













      node 'node-slave01' 
      include repo::git
      include fun::cmatrix

      node 'node-slave02'
      include repo::hg
      include fun::toilet

      node 'node-slave03'
      include fun::rup
      include repo::svn
      include fun::cmatrix

      node 'node-slave04'
      include repo::git
      include repo::hg
      include repo::svn
      include fun::cmatrix
      include fun::toilet

      node /node-slaved+/
      include lamp
      include test
      include fun::rup
      include sup



      So everything in /node-slaved+/ doesn't run. If I take the sup module and put it under any of the 4 nodes, it runs after I write sudo puppet agent --test, but not if it's under the regexp.



      How do I do it if I want to have certain nodes do certain things, but there are some commands that I want all of them to do? Writing include sup under every node seems extremely annoying.







      puppet






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 17 at 8:40









      iamAguest

      985




      985




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          Puppet matches one node and once it does that it stops. FQDN is highest and it works down to default. See matching section - https://puppet.com/docs/puppet/4.10/lang_node_definitions.html.



          One way to do it is to have just your regex node and then use a case statement for things that are unique to each node



          node /node-slaved+/
          include lamp
          include test
          include fun::rup
          include sup



          case $::hostname
          'node-slave01':
          include repo::git
          include fun::cmatrix

          node-slave02':
          include repo::hg
          include fun::toilet








          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f469510%2fpuppet-agent-doesnt-run-manifest-from-regexp%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            Puppet matches one node and once it does that it stops. FQDN is highest and it works down to default. See matching section - https://puppet.com/docs/puppet/4.10/lang_node_definitions.html.



            One way to do it is to have just your regex node and then use a case statement for things that are unique to each node



            node /node-slaved+/
            include lamp
            include test
            include fun::rup
            include sup



            case $::hostname
            'node-slave01':
            include repo::git
            include fun::cmatrix

            node-slave02':
            include repo::hg
            include fun::toilet








            share|improve this answer
























              up vote
              0
              down vote



              accepted










              Puppet matches one node and once it does that it stops. FQDN is highest and it works down to default. See matching section - https://puppet.com/docs/puppet/4.10/lang_node_definitions.html.



              One way to do it is to have just your regex node and then use a case statement for things that are unique to each node



              node /node-slaved+/
              include lamp
              include test
              include fun::rup
              include sup



              case $::hostname
              'node-slave01':
              include repo::git
              include fun::cmatrix

              node-slave02':
              include repo::hg
              include fun::toilet








              share|improve this answer






















                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                Puppet matches one node and once it does that it stops. FQDN is highest and it works down to default. See matching section - https://puppet.com/docs/puppet/4.10/lang_node_definitions.html.



                One way to do it is to have just your regex node and then use a case statement for things that are unique to each node



                node /node-slaved+/
                include lamp
                include test
                include fun::rup
                include sup



                case $::hostname
                'node-slave01':
                include repo::git
                include fun::cmatrix

                node-slave02':
                include repo::hg
                include fun::toilet








                share|improve this answer












                Puppet matches one node and once it does that it stops. FQDN is highest and it works down to default. See matching section - https://puppet.com/docs/puppet/4.10/lang_node_definitions.html.



                One way to do it is to have just your regex node and then use a case statement for things that are unique to each node



                node /node-slaved+/
                include lamp
                include test
                include fun::rup
                include sup



                case $::hostname
                'node-slave01':
                include repo::git
                include fun::cmatrix

                node-slave02':
                include repo::hg
                include fun::toilet









                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 17 at 12:01









                user103944

                161




                161



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f469510%2fpuppet-agent-doesnt-run-manifest-from-regexp%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay