Install NextCloud 11 on Fedora 25 with SaltStack
-
@scottalanmiller said in Install NextCloud 11 on Fedora 25 with SaltStack:
Files go on the master. The master pushed them to the minion in the right location.
OK. I finally got my salt master setup and the minion keys accepted and could properly do a salt test ping. I created the 3 files (nextcloud.sls, ssl.conf, redis.conf) in the srv/salt directory with the contents copied from the OP. I verified the files were in there and ran the salt 'minionname' state.apply nextcloud command from the srv/salt directory on the master.
Now I am getting the following error -
minionname:
Data failed to compile:No matching sls found for 'nextcloud' in env 'base'
ERROR: Minions returned with non-zero exit codeI don't know where to begin on this one. I tried a Google search and it seemed a little over my head at this point.
Any suggestions?
-
The directory is /srv/salt not srv/salt. That would do it. But that might just be a typo here on the community, too.
-
@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.
-
@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.
-
@scottalanmiller Thanks for the basic explanation. I really need to revisit your Linux for noobs series
-
#winning
-
@wrx7m Did you create 2 VMs (for master & minion)?
-
@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.
-
@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. -
@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?
-
@FATeknollogee I used Salt for the master and a custom one for my minion.
-
@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.
-
@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.
-
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.
-
@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.
-
@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.
-
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.
-
@scottalanmiller Thanks. I did exactly that and it works
-
@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.
-
@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?