ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Installing Chef 12 on CentOS 6.5

    IT Discussion
    chef centos rhel red hat linux
    2
    14
    6.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Now you are install the Chef Server...

      rpm -ivh chef-server-*.rpm
      

      Once that has completed...

      chef-server-ctl reconfigure
      chef-server-ctl test
      
      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        Add these two lines to /etc/sysconfig/iptables

        -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
        -A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
        

        They fit nicely under the matching line for --dport 22.

        Once you have edited that file, reload the firewall rules using this command:

        service iptables reload
        
        1 Reply Last reply Reply Quote 0
        • JaredBuschJ
          JaredBusch @scottalanmiller
          last edited by

          @scottalanmiller said:

          Before installing, we need to disable SELinux as it does not play nice with Chef.

          setenforce permissive
          

          This did not survive a reboot on my CentOS 7 box. Is that supposed to be a permanent change? Or should the config file be edited also?

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @JaredBusch
            last edited by

            @JaredBusch said:

            @scottalanmiller said:

            Before installing, we need to disable SELinux as it does not play nice with Chef.

            setenforce permissive
            

            This did not survive a reboot on my CentOS 7 box. Is that supposed to be a permanent change? Or should the config file be edited also?

            That's a "live" change. It does not change the permanent configuration. To change the permanent setup edit...

            cat /etc/sysconfig/selinux
            

            And modify the SELINUX= line to...

            SELINUX=permissive
            
            JaredBuschJ 1 Reply Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch @scottalanmiller
              last edited by

              @scottalanmiller I was just wonder if it needed to be permanent or not.

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @JaredBusch
                last edited by

                @JaredBusch said:

                @scottalanmiller I was just wonder if it needed to be permanent or not.

                Most things only need it during install time and it can be re-enabled once the installation is done. Not always true, but typically. MySQL and MariaDB databases being common cases where you turn it off during setup and turn it back on afterwards.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  Now we need to install the management console (you want one of those, right?) With Chef 12 there is a new process for this and it is not documented from Opscode which is very frustrating.

                  First we have to do the physical install:

                  chef-server-ctl install opscode-manage
                  

                  Then we have to know that it needs to be configured post install, nothing will tell you to do this:

                  opscode-manage-ctl reconfigure
                  

                  That's it, now you can navigate to your server.

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    The first time that you log in you will be required to create a new account. Simply follow the on-screen prompts to do so. This is quick and easy.

                    Once you have done this you will be prompted to "Create New Organization" as, obviously, none currently exists. Click the button to do so...

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      You will need both a full name and a short name for the organization. The full name should be the actual company name. The short name should be short, easy and all lower case. It's just for internal Chef reference.

                      That's it, you are up and running with Chef!

                      1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller
                        last edited by

                        There we go, all set. Hopefully that will help some people get started with Chef since it is basically really simple but lacking a few specific things that you "just have to know" because Opscode does not document them (a gap in the Chef 12 documents) it is very hard for no reason.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post