How do I apply a manifest from a Puppet Master server to a Puppet Agent node server?











up vote
1
down vote

favorite












I installed Puppet Agent on a CentOS 7 server. I installed Puppet Master on a different CentOS 7 server. I'm using the free version of Puppet on both servers. The Puppet Agent server requested a certificate. I signed it on the Puppet Master server. There is no software firewall on either server. There is no firewall between the servers. I temporarily enabled port 8140 with SSHD. I used SSH to verify port 8140 was open. I then reverted SSHD to only listen on port 22. Port 8140 wasn't blocked. nslookup on the IP addresses and ping against the domain names shows that both servers have correct networking information about the other server. These are new servers. Puppet has never worked on them before. I created a simple manifest. I applied it to the Puppet Master server locally. It worked without errors. I then tried to apply it to the Puppet Agent server. It didn't work.



From the Puppet Master server, I ran this:



puppet agent neat.pp --server hostNameOfPuppetAgentServer --verbose



There were no errors on the Puppet Master server after I pressed enter. There was no output at all. This produced no logs on the Puppet Agent server. There was no evidence it worked on the Puppet Agent server. I checked, and the effects were not performed.



On the Puppet Master server I ran this:



puppet agent --server hostNameOfPuppetAgentServer --test



The results included "Connection refused -- connect (2)." What is wrong? I expect the manifest to work on a Puppet Agent node.










share|improve this question






















  • Puppet Master server does not push rules to the slaves, but its the slave that pulls the rules from the master. You go have to start the Puppet Agent daemon on the puppet slaves, not on the master.
    – haxxor
    Jan 20 '16 at 5:14










  • run ` puppet agent --server <puppet-master> --test` on your puppet agent. Not on your puppet master.
    – Siddharth sharma
    Jan 20 '16 at 6:37















up vote
1
down vote

favorite












I installed Puppet Agent on a CentOS 7 server. I installed Puppet Master on a different CentOS 7 server. I'm using the free version of Puppet on both servers. The Puppet Agent server requested a certificate. I signed it on the Puppet Master server. There is no software firewall on either server. There is no firewall between the servers. I temporarily enabled port 8140 with SSHD. I used SSH to verify port 8140 was open. I then reverted SSHD to only listen on port 22. Port 8140 wasn't blocked. nslookup on the IP addresses and ping against the domain names shows that both servers have correct networking information about the other server. These are new servers. Puppet has never worked on them before. I created a simple manifest. I applied it to the Puppet Master server locally. It worked without errors. I then tried to apply it to the Puppet Agent server. It didn't work.



From the Puppet Master server, I ran this:



puppet agent neat.pp --server hostNameOfPuppetAgentServer --verbose



There were no errors on the Puppet Master server after I pressed enter. There was no output at all. This produced no logs on the Puppet Agent server. There was no evidence it worked on the Puppet Agent server. I checked, and the effects were not performed.



On the Puppet Master server I ran this:



puppet agent --server hostNameOfPuppetAgentServer --test



The results included "Connection refused -- connect (2)." What is wrong? I expect the manifest to work on a Puppet Agent node.










share|improve this question






















  • Puppet Master server does not push rules to the slaves, but its the slave that pulls the rules from the master. You go have to start the Puppet Agent daemon on the puppet slaves, not on the master.
    – haxxor
    Jan 20 '16 at 5:14










  • run ` puppet agent --server <puppet-master> --test` on your puppet agent. Not on your puppet master.
    – Siddharth sharma
    Jan 20 '16 at 6:37













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I installed Puppet Agent on a CentOS 7 server. I installed Puppet Master on a different CentOS 7 server. I'm using the free version of Puppet on both servers. The Puppet Agent server requested a certificate. I signed it on the Puppet Master server. There is no software firewall on either server. There is no firewall between the servers. I temporarily enabled port 8140 with SSHD. I used SSH to verify port 8140 was open. I then reverted SSHD to only listen on port 22. Port 8140 wasn't blocked. nslookup on the IP addresses and ping against the domain names shows that both servers have correct networking information about the other server. These are new servers. Puppet has never worked on them before. I created a simple manifest. I applied it to the Puppet Master server locally. It worked without errors. I then tried to apply it to the Puppet Agent server. It didn't work.



From the Puppet Master server, I ran this:



puppet agent neat.pp --server hostNameOfPuppetAgentServer --verbose



There were no errors on the Puppet Master server after I pressed enter. There was no output at all. This produced no logs on the Puppet Agent server. There was no evidence it worked on the Puppet Agent server. I checked, and the effects were not performed.



On the Puppet Master server I ran this:



puppet agent --server hostNameOfPuppetAgentServer --test



The results included "Connection refused -- connect (2)." What is wrong? I expect the manifest to work on a Puppet Agent node.










share|improve this question













I installed Puppet Agent on a CentOS 7 server. I installed Puppet Master on a different CentOS 7 server. I'm using the free version of Puppet on both servers. The Puppet Agent server requested a certificate. I signed it on the Puppet Master server. There is no software firewall on either server. There is no firewall between the servers. I temporarily enabled port 8140 with SSHD. I used SSH to verify port 8140 was open. I then reverted SSHD to only listen on port 22. Port 8140 wasn't blocked. nslookup on the IP addresses and ping against the domain names shows that both servers have correct networking information about the other server. These are new servers. Puppet has never worked on them before. I created a simple manifest. I applied it to the Puppet Master server locally. It worked without errors. I then tried to apply it to the Puppet Agent server. It didn't work.



From the Puppet Master server, I ran this:



puppet agent neat.pp --server hostNameOfPuppetAgentServer --verbose



There were no errors on the Puppet Master server after I pressed enter. There was no output at all. This produced no logs on the Puppet Agent server. There was no evidence it worked on the Puppet Agent server. I checked, and the effects were not performed.



On the Puppet Master server I ran this:



puppet agent --server hostNameOfPuppetAgentServer --test



The results included "Connection refused -- connect (2)." What is wrong? I expect the manifest to work on a Puppet Agent node.







linux centos ssh networking puppet






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 20 '16 at 2:47









Kiran

133619




133619












  • Puppet Master server does not push rules to the slaves, but its the slave that pulls the rules from the master. You go have to start the Puppet Agent daemon on the puppet slaves, not on the master.
    – haxxor
    Jan 20 '16 at 5:14










  • run ` puppet agent --server <puppet-master> --test` on your puppet agent. Not on your puppet master.
    – Siddharth sharma
    Jan 20 '16 at 6:37


















  • Puppet Master server does not push rules to the slaves, but its the slave that pulls the rules from the master. You go have to start the Puppet Agent daemon on the puppet slaves, not on the master.
    – haxxor
    Jan 20 '16 at 5:14










  • run ` puppet agent --server <puppet-master> --test` on your puppet agent. Not on your puppet master.
    – Siddharth sharma
    Jan 20 '16 at 6:37
















Puppet Master server does not push rules to the slaves, but its the slave that pulls the rules from the master. You go have to start the Puppet Agent daemon on the puppet slaves, not on the master.
– haxxor
Jan 20 '16 at 5:14




Puppet Master server does not push rules to the slaves, but its the slave that pulls the rules from the master. You go have to start the Puppet Agent daemon on the puppet slaves, not on the master.
– haxxor
Jan 20 '16 at 5:14












run ` puppet agent --server <puppet-master> --test` on your puppet agent. Not on your puppet master.
– Siddharth sharma
Jan 20 '16 at 6:37




run ` puppet agent --server <puppet-master> --test` on your puppet agent. Not on your puppet master.
– Siddharth sharma
Jan 20 '16 at 6:37










1 Answer
1






active

oldest

votes

















up vote
0
down vote













On your puppet client, edit puppet.conf [main] section include server = <puppet_server_name>.



And try run puppet agent -t .






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: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    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%2f256450%2fhow-do-i-apply-a-manifest-from-a-puppet-master-server-to-a-puppet-agent-node-ser%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    On your puppet client, edit puppet.conf [main] section include server = <puppet_server_name>.



    And try run puppet agent -t .






    share|improve this answer

























      up vote
      0
      down vote













      On your puppet client, edit puppet.conf [main] section include server = <puppet_server_name>.



      And try run puppet agent -t .






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        On your puppet client, edit puppet.conf [main] section include server = <puppet_server_name>.



        And try run puppet agent -t .






        share|improve this answer












        On your puppet client, edit puppet.conf [main] section include server = <puppet_server_name>.



        And try run puppet agent -t .







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 20 '16 at 5:21









        Muralibabud

        843




        843






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f256450%2fhow-do-i-apply-a-manifest-from-a-puppet-master-server-to-a-puppet-agent-node-ser%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            サソリ

            広島県道265号伴広島線

            Accessing regular linux commands in Huawei's Dopra Linux