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

    Install NextCloud 11 on Fedora 25 with SaltStack

    Scheduled Pinned Locked Moved IT Discussion
    nextcloudnextcloud 11fedoralinuxfedora 25redismariadbsaltsaltstackdevopsscott alan millersam salt administration
    201 Posts 14 Posters 45.6k Views
    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.
    • C
      CrimsonKidA @scottalanmiller
      last edited by

      Oh very cool! I did not know that 🙂

      C 1 Reply Last reply Reply Quote 0
      • C
        CrimsonKidA @CrimsonKidA
        last edited by

        ...in that case I may just use 443, yeah.

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

          WIth mine, I add the certs once they are acquired to my state files and have them ensured by SaltStack so that if I need (or want) to migrate to a different server I can do so and it moves my full system, including the certs, with it. Still have to backup and restore the file data, of course.

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

            @CrimsonKidA said in Install NextCloud 11 on Fedora 25 with SaltStack:

            ...in that case I may just use 443, yeah.

            You CAN run any commands via Salt, too. You can avoid logging in. Except your SaltMaster is on the same host, so that doesn't work 😉

            1 Reply Last reply Reply Quote 1
            • C
              CrimsonKidA
              last edited by

              Would I need to add something to the salt script to enable the "LDAP user and group backend" v1.1.2 app for NextCloud? I want SSO for our AD users, but NextCloud says "This app cannot be installed because the following dependencies are not fulfilled:
              The library ldap is not available."

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

                This should be the package that is missing: php-ldap.x86_64

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

                  So you can just add it to the package list...

                  install_network_packages:
                    pkg.installed:
                      - pkgs:
                        - wget
                        - unzip
                        - firewalld
                        - net-tools
                        - php-ldap
                  

                  Add it into the list as above. Anywhere in the list is fine. Then run your state again. This way it is added in, but if you need to rebuild your master file is ready to make everything for you.

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

                    I added the php-ldap package to the main directions.

                    1 Reply Last reply Reply Quote 1
                    • FATeknollogeeF
                      FATeknollogee
                      last edited by

                      Can someone break this down in plain English for those of us that aren't that smart?

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

                        @FATeknollogee said in Install NextCloud 11 on Fedora 25 with SaltStack:

                        Can someone break this down in plain English for those of us that aren't that smart?

                        Which part?

                        FATeknollogeeF 1 Reply Last reply Reply Quote 0
                        • FATeknollogeeF
                          FATeknollogee @scottalanmiller
                          last edited by

                          @scottalanmiller said in Install NextCloud 11 on Fedora 25 with SaltStack:

                          @FATeknollogee said in Install NextCloud 11 on Fedora 25 with SaltStack:

                          Can someone break this down in plain English for those of us that aren't that smart?

                          Which part?

                          After the o/s is installed, how do get here? "To use nextcloud.sls you will need to copy all three files to your /srv/salt/ directory as it will pull the two configuration files from there to put them on the server.

                          /srv/salt/nextcloud.sls"

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

                            @FATeknollogee said in Install NextCloud 11 on Fedora 25 with SaltStack:

                            @scottalanmiller said in Install NextCloud 11 on Fedora 25 with SaltStack:

                            @FATeknollogee said in Install NextCloud 11 on Fedora 25 with SaltStack:

                            Can someone break this down in plain English for those of us that aren't that smart?

                            Which part?

                            After the o/s is installed, how do get here? "To use nextcloud.sls you will need to copy all three files to your /srv/salt/ directory as it will pull the two configuration files from there to put them on the server.

                            /srv/salt/nextcloud.sls"

                            This is a SaltStack state file (hence "with SaltStack" in the title.) So you would need to install SaltStack to do this. If you use the SaltStack tag here on the community, there are guides to installing a Salt Master and a Salt Minion (the minion is the server on which you would install NextCloud, for example.) I'm turning out guides regularly which basically completely manage your servers, so this can be worthwhile as building servers becomes pretty much zero work this way.

                            FATeknollogeeF 1 Reply Last reply Reply Quote 1
                            • FATeknollogeeF
                              FATeknollogee
                              last edited by

                              The Master/Minion part is simple, that I figured out.

                              Getting to the NextCloud install is where I got lost.

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

                                @FATeknollogee said in Install NextCloud 11 on Fedora 25 with SaltStack:

                                The Master/Minion part is simple, that I figured out.

                                Getting to the NextCloud install is where I got lost.

                                You put the NextCloud state file onto your Salt master and state.apply it to the minion in question. The minion will build itself automatically.

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

                                  So for example here, there are three files to save. Just save them to the locations specified for each file (literally just copy and paste them.) This is on the master, you never log into the minion.

                                  Then from the master (and assuming your minion's name is minion1) you would run a command like this...

                                  salt 'minion1' state.apply nextcloud
                                  

                                  And wait as the magic happens and your blank minion turns into a fully working NextCloud 11 instance.

                                  1 Reply Last reply Reply Quote 1
                                  • FATeknollogeeF
                                    FATeknollogee
                                    last edited by

                                    In /srv/salt/ I need to create nextcloud.sls, ssl.conf & redis.conf
                                    Copy & paste the contents
                                    state.apply = magic?

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

                                      @FATeknollogee said in Install NextCloud 11 on Fedora 25 with SaltStack:

                                      In /srv/salt/ I need to create nextcloud.sls, ssl.conf & redis.conf
                                      Copy & paste the contents
                                      state.apply = magic?

                                      Yes, create those files and yes, salt is magic.

                                      FATeknollogeeF 1 Reply Last reply Reply Quote 0
                                      • FATeknollogeeF
                                        FATeknollogee @scottalanmiller
                                        last edited by

                                        @scottalanmiller said in Install NextCloud 11 on Fedora 25 with SaltStack:

                                        @FATeknollogee said in Install NextCloud 11 on Fedora 25 with SaltStack:

                                        In /srv/salt/ I need to create nextcloud.sls, ssl.conf & redis.conf
                                        Copy & paste the contents
                                        state.apply = magic?

                                        Yes, create those files and yes, salt is magic.

                                        That's so easy even a caveman :clown: like me could do it.
                                        I was over-thinking & kept "googling" for a NextCloud.sls download 🤦

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

                                          @FATeknollogee said in Install NextCloud 11 on Fedora 25 with SaltStack:

                                          @scottalanmiller said in Install NextCloud 11 on Fedora 25 with SaltStack:

                                          @FATeknollogee said in Install NextCloud 11 on Fedora 25 with SaltStack:

                                          In /srv/salt/ I need to create nextcloud.sls, ssl.conf & redis.conf
                                          Copy & paste the contents
                                          state.apply = magic?

                                          Yes, create those files and yes, salt is magic.

                                          That's so easy even a caveman :clown: like me could do it.
                                          I was over-thinking & kept "googling" for a NextCloud.sls download 🤦

                                          My plan is to eventually polish these further and move them to GitHub and let people pull my whole library and just choose what they want that way. For now, some copy and pastes.

                                          Because Salt defines the state of the system, sharing configurations becomes really easy.

                                          dafyreD 1 Reply Last reply Reply Quote 1
                                          • dafyreD
                                            dafyre @scottalanmiller
                                            last edited by

                                            @scottalanmiller said in Install NextCloud 11 on Fedora 25 with SaltStack:

                                            @FATeknollogee said in Install NextCloud 11 on Fedora 25 with SaltStack:

                                            @scottalanmiller said in Install NextCloud 11 on Fedora 25 with SaltStack:

                                            @FATeknollogee said in Install NextCloud 11 on Fedora 25 with SaltStack:

                                            In /srv/salt/ I need to create nextcloud.sls, ssl.conf & redis.conf
                                            Copy & paste the contents
                                            state.apply = magic?

                                            Yes, create those files and yes, salt is magic.

                                            That's so easy even a caveman :clown: like me could do it.
                                            I was over-thinking & kept "googling" for a NextCloud.sls download 🤦

                                            My plan is to eventually polish these further and move them to GitHub and let people pull my whole library and just choose what they want that way. For now, some copy and pastes.

                                            Because Salt defines the state of the system, sharing configurations becomes really easy.

                                            It's your NextCloud 11 file that got me started on my own, lol.

                                            1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 10
                                            • 11
                                            • 3 / 11
                                            • First post
                                              Last post