Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fakman0/saltstack-wordpress-conf
In the SaltStack infrastructure, there is a configuration that enables the setup of a remote MySQL server on the ubuntu22 server and a WordPress website prepared with nginx on the centos9 server.
https://github.com/fakman0/saltstack-wordpress-conf
example example-project saltstack
Last synced: 3 months ago
JSON representation
In the SaltStack infrastructure, there is a configuration that enables the setup of a remote MySQL server on the ubuntu22 server and a WordPress website prepared with nginx on the centos9 server.
- Host: GitHub
- URL: https://github.com/fakman0/saltstack-wordpress-conf
- Owner: fakman0
- Created: 2024-03-18T12:35:05.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-10T21:48:53.000Z (6 months ago)
- Last Synced: 2024-09-30T11:22:29.553Z (4 months ago)
- Topics: example, example-project, saltstack
- Language: SaltStack
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Preparation
You must have one Ubuntu 22.04 (ubuntu22) and one CentOS Stream 9 (centos9) minion:
> Make sure the minion names match exactly and are of version '3007.0' or higher.
```
root@SaltStack-master:/# salt "*" test.ping
centos9:
True
ubuntu22:
True
root@SaltStack-master:/# salt '*' grains.get saltversion
centos9:
3007.0
ubuntu22:
3007.0
```
## Installation
```
git clone https://github.com/fakman0/saltstack-wordpress-conf.git
cd saltstack-wordpress-conf
cp -r pillar /srv/
cp -r salt /srv/
```
> The mine function should be used to store data in the pillar data to ensure that minions have each other's IP addresses.
```
salt '*' saltutil.pillar_refresh
salt '*' pillar.get mine_functions
salt '*' mine.update
```
> Confirm the accuracy of the data.
```
root@SaltStack-master:/# salt '*' mine.get '*' internal_ip_addrs
centos9:
----------
centos9:
- 92.xx.xx.86
ubuntu22:
- 92.xx.xx.82
ubuntu22:
----------
centos9:
- 92.xx.xx.86
ubuntu22:
- 92.xx.xx.82
```#### You are ready to start the configuration.
```
salt "*" state.sls wordpress
```