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:
Yes, a single master can handle tens of thousands of servers.
Does one need to worry about increasing the resources of this "master" vm - more RAM, more disk space etc
What kind of resources are you starting with - RAM, vCPU, disk etc?
Eventually, but Masters use almost no resources. 512MB and one vCPU is really enough for all you will ever need to handle.
-
@FATeknollogee said in Install NextCloud 11 on Fedora 25 with SaltStack:
@scottalanmiller said in Install NextCloud 11 on Fedora 25 with SaltStack:
Yes, a single master can handle tens of thousands of servers.
Does one need to worry about increasing the resources of this "master" vm - more RAM, more disk space etc
What kind of resources are you starting with - RAM, vCPU, disk etc?
Very light system. You won't need much. And since it is only configuration even if it slows down, you won't care.
-
Any good reasons to not accept the default values?
-
Depends, what are you building? For a NextCloud instance, 25GB is not much storage.
-
Welcoming @brandon220 to the club as he got his NC11 install based on this state file up and running yesterday.
-
@scottalanmiller Thank you sir. I do have another question - I set up another user and the email for alerts etc. I shutdown the VM from the terminal. Went to my Hyper-V manager and did an export. I started the server again and all is well. Went to the browser to start working in NC again but got page cannot be displayed error. I issued a start command for the httpd service and then got a blank page but no error. Re-ran the salt 'servername' state.apply nextcloud command again and got the return message Succeeded 19 Changed 3. The NC instance is then working again and my info is still there. I am trying to figure out where the issue is. Not sure if this has happened to any of the other installs that you have done or witnessed.
-
I see the issue @brandon220 it's really simple and on my side. You are in no danger, it's just that the things you need turn themselves off on restart. I have to run out the door but I will get this fixed when I get back and you can just run the state.apply again and it will be fixed.
-
@scottalanmiller Interesting. I will check back later this evening. What in the state file caught your attention? I'm new to state files so it is very intriguing to me.
-
@brandon220 said in Install NextCloud 11 on Fedora 25 with SaltStack:
@scottalanmiller Interesting. I will check back later this evening. What in the state file caught your attention? I'm new to state files so it is very intriguing to me.
There you go, just update your state file with the original one and state.apply again. I had to add the - enable: True to the web server and two database servers or else they would not be running on reboot.
-
@scottalanmiller I will make the change. Thanks again.
-
@brandon220 said in Install NextCloud 11 on Fedora 25 with SaltStack:
@scottalanmiller I will make the change. Thanks again.
You bet. Thanks for using the script!
-
Forgive my ignorance. I need a kickstart on what to do first. I just spun up Fedora 25 on an ESXi 6 host and not sure how to get started with the saltstack stuff.
-
@wrx7m said in Install NextCloud 11 on Fedora 25 with SaltStack:
Forgive my ignorance. I need a kickstart on what to do first. I just spun up Fedora 25 on an ESXi 6 host and not sure how to get started with the saltstack stuff.
Check the SaltStack tag. There is a guide to setting up a Master and a Minion.
-
@wrx7m said in Install NextCloud 11 on Fedora 25 with SaltStack:
Forgive my ignorance. I need a kickstart on what to do first. I just spun up Fedora 25 on an ESXi 6 host and not sure how to get started with the saltstack stuff.
If you don't want salt and just want to use Nextcloud on Fedora 25, I am verifying my guide for it.
-
@JaredBusch said in Install NextCloud 11 on Fedora 25 with SaltStack:
@wrx7m said in Install NextCloud 11 on Fedora 25 with SaltStack:
Forgive my ignorance. I need a kickstart on what to do first. I just spun up Fedora 25 on an ESXi 6 host and not sure how to get started with the saltstack stuff.
If you don't want salt and just want to use Nextcloud on Fedora 25, I am verifying my guide for it.
Thanks. I will have to check it out when you're done
-
I don't have a srv/salt directory on my master or minion. Do I create one and do the files go on the master or the minion?
-
@wrx7m said in Install NextCloud 11 on Fedora 25 with SaltStack:
I don't have a srv/salt directory on my master or minion. Do I create one and do the files go on the master or the minion?
Yup. Just create it.
-
Files go on the master. The master pushed them to the minion in the right location.
-
@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.