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

    Install NextCloud 11 on Fedora 25 with SaltStack

    IT Discussion
    nextcloud nextcloud 11 fedora linux fedora 25 redis mariadb salt saltstack devops scott alan miller sam salt administration
    14
    201
    41.0k
    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 @wrx7m
      last edited by

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

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

      The directory is /srv/salt not srv/salt. That would do it. But that might just be a typo here on the community, too.

      Good catch! I had no idea that was two different things. 😐

      Think of the leading / as being like C:\on Windows. If you say /srv/salt you are telling the system exactly where the files are to go. / is known as "root" and is the base of the filesystem. If you drop the leading / then you are giving the command to go to a place in the filesystem relative to your current location rather than in absolute terms. In that way, same as Windows.

      wrx7mW 1 Reply Last reply Reply Quote 1
      • wrx7mW
        wrx7m @scottalanmiller
        last edited by

        @scottalanmiller Thanks for the basic explanation. I really need to revisit your Linux for noobs series 🙂

        1 Reply Last reply Reply Quote 1
        • wrx7mW
          wrx7m
          last edited by

          #winning
          0_1493748718958_Capture.PNG

          FATeknollogeeF 1 Reply Last reply Reply Quote 2
          • FATeknollogeeF
            FATeknollogee @wrx7m
            last edited by

            @wrx7m Did you create 2 VMs (for master & minion)?

            wrx7mW 1 Reply Last reply Reply Quote 0
            • wrx7mW
              wrx7m @FATeknollogee
              last edited by

              @FATeknollogee Yes. I created a dedicated CentOS 7 VM for the master and created a VM with Fedora 25 for the nextcloud minion.

              Now, if I could find the default login info.

              FATeknollogeeF scottalanmillerS 4 Replies Last reply Reply Quote 0
              • FATeknollogeeF
                FATeknollogee @wrx7m
                last edited by

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

                @FATeknollogee Yes. I created a dedicated CentOS 7 VM for the master and created a VM with Fedora 25 for the nextcloud minion.

                Now, if I could find the default login info.

                Man, I need to revisit this.
                My first 2 tries failed woefully, I could not get the minion to "talk" with the master.
                I will try again tonight.

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

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

                  @FATeknollogee Yes. I created a dedicated CentOS 7 VM for the master and created a VM with Fedora 25 for the nextcloud minion.

                  Now, if I could find the default login info.

                  Did you change the names of the VM or use the default?

                  wrx7mW 1 Reply Last reply Reply Quote 0
                  • wrx7mW
                    wrx7m @FATeknollogee
                    last edited by

                    @FATeknollogee I used Salt for the master and a custom one for my minion.

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

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

                      @FATeknollogee Yes. I created a dedicated CentOS 7 VM for the master and created a VM with Fedora 25 for the nextcloud minion.

                      Now, if I could find the default login info.

                      It's in the Salt state file.

                      wrx7mW 1 Reply Last reply Reply Quote 1
                      • wrx7mW
                        wrx7m @scottalanmiller
                        last edited by

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

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

                        @FATeknollogee Yes. I created a dedicated CentOS 7 VM for the master and created a VM with Fedora 25 for the nextcloud minion.

                        Now, if I could find the default login info.

                        It's in the Salt state file.

                        Ha! I did a ctrl F on this page and it didn't work for some reason. Got in but now I get a big white box with a message that says This content failed to load.

                        1 Reply Last reply Reply Quote 0
                        • wrx7mW
                          wrx7m
                          last edited by

                          Rebooting made it worse (page timed out) so I reran the salt state. This time it completed in half the time as the original and now I was able to login and get the interface. I wonder what happened the first time. I also wonder if a reboot will cause a problem again.

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

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

                            Rebooting made it worse (page timed out) so I reran the salt state. This time it completed in half the time as the original and now I was able to login and get the interface. I wonder what happened the first time. I also wonder if a reboot will cause a problem again.

                            Should not, but maybe something is missing in the state file to make things perm.

                            wrx7mW 1 Reply Last reply Reply Quote 0
                            • wrx7mW
                              wrx7m @scottalanmiller
                              last edited by

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

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

                              Rebooting made it worse (page timed out) so I reran the salt state. This time it completed in half the time as the original and now I was able to login and get the interface. I wonder what happened the first time. I also wonder if a reboot will cause a problem again.

                              Should not, but maybe something is missing in the state file to make things perm.

                              I rebooted and the site still works but now I can't get in via SSH. I think you said that the state file will disable it or close the ports. I have to look into it. Strange that it was working after the first time I applied the state file.

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

                                To add SSH capability (which in theory you do not need here) by switching to this for the firewall section...

                                FedoraServer:
                                  firewalld.present:
                                    - name: FedoraServer
                                    - block_icmp:
                                      - echo-reply
                                      - echo-request
                                    - default: False
                                    - masquerade: True
                                    - ports:
                                      - 443/tcp
                                      - 22/tcp
                                

                                Notice I only added one line at the end.

                                wrx7mW 2 Replies Last reply Reply Quote 2
                                • wrx7mW
                                  wrx7m @scottalanmiller
                                  last edited by

                                  @scottalanmiller Thanks. I did exactly that and it works 🙂

                                  1 Reply Last reply Reply Quote 1
                                  • wrx7mW
                                    wrx7m @scottalanmiller
                                    last edited by

                                    @scottalanmiller For some reason it isn't holding the SSH part of the ACL. I modified firewalld to add the --permanent and it seems to be holding now. Strange that the https isn't an issue.

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

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

                                      @scottalanmiller For some reason it isn't holding the SSH part of the ACL. I modified firewalld to add the --permanent and it seems to be holding now. Strange that the https isn't an issue.

                                      Hmmm... you are sure that the state file on the Salt Master has the right details in the file?

                                      wrx7mW 1 Reply Last reply Reply Quote 0
                                      • wrx7mW
                                        wrx7m @scottalanmiller
                                        last edited by

                                        @scottalanmiller I copied and pasted it from the post. But then added the 22/tcp manually and saved the file and when I applied the salt file a second time the ssh worked immediately afterward.

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

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

                                          @scottalanmiller I copied and pasted it from the post. But then added the 22/tcp manually and saved the file and when I applied the salt file a second time the ssh worked immediately afterward.

                                          Right, was just wondering if the copy/paste changed somewhere. On mine, for example, I have an automated GIT pull so if I change it in the wrong place, it will get changed back a few minutes later 🙂

                                          1 Reply Last reply Reply Quote 1
                                          • wrx7mW
                                            wrx7m
                                            last edited by wrx7m

                                            I think I am going to blow away the nextcloud VM and start from scratch. ~~I also have some weird issues when attempting to update to version 11.0.3 via the web interface -

                                            I get the following -
                                            Check for expected files
                                            The following extra files have been found:

                                            install_complete

                                            I think I can delete it if I knew where to find it. I tried a basic find command on the backend and didn't come up with it.~~

                                            EDIT - Found the file after reviewing the sls file contents and was able to remove it and update.

                                            Also, when trying to configure LDAP/AD integration I get errors saying that it can't detect anything and tells me to enter it all in manually. Then when I hit continue, it says Lost connection to LDAP server. I even tried disabling firewalld on the nextcloud server just in case there was something funky going on. I have successfully setup integration for OpenVPN AS and other services, so I don't know why this one is giving me so much grief.

                                            brandon220B scottalanmillerS 2 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 10
                                            • 11
                                            • 5 / 11
                                            • First post
                                              Last post