This Salt formula provides a configuration that accomplishes the specified tasks when applied to Ubuntu 22.04 and CentOS Stream 9 servers.
- Use these Salt formula files to create the "kartaca" user, configure system settings, and install necessary packages.
- Follow the specified steps to install and configure services like Nginx, MySQL, and WordPress.
- Provide necessary password and database information using the Salt pillar file.
- Copy the configuration files from the
files
directory to their respective locations. - Apply this formula to minions via the Salt master and perform your configurations.
kartaca-wordpress.sls
: Main Salt state file. All configurations are done here.kartaca-pillar.sls
: Salt pillar file. Hidden data like passwords and database information are stored here.files/nginx.conf
: Nginx configuration file.files/wp-config.php
: WordPress configuration file.
To apply this formula to your minions, follow these steps:
$ git clone https://github.com/KamiKaramazov/kartaca-wordpress-salt-formula
$ cd kartaca-wordpress-salt-formula
$ cp -r files /srv/salt/
$ cp kartaca-wordpress.sls /srv/salt/kartaca-wordpress.sls
$ cp kartaca-pillar.sls /srv/pillar/kartaca-pillar.sls
$ salt "*" test.ping
ubuntu22:
True
centos9:
True
$ salt "*" state.sls kartaca-wordpress
If you encounter any issues with this formula or have any development suggestions, please open an Issue or submit a Pull Request.
This Salt formula is licensed under the MIT license. For more information, see the LICENSE file.