Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kamikaramazov/kartaca-wordpress-salt-formula

This repository contains a SaltStack formula for automating the configuration of WordPress installations on Ubuntu 22.04 and CentOS Stream 9 servers. The formula sets up the necessary server configurations, installs required packages, and configures services like Nginx, MySQL, and WordPress itself.
https://github.com/kamikaramazov/kartaca-wordpress-salt-formula

automation centos9 msql nginx saltstack saltstack-formula serverconfig ubuntu-server wordpress

Last synced: about 1 month ago
JSON representation

This repository contains a SaltStack formula for automating the configuration of WordPress installations on Ubuntu 22.04 and CentOS Stream 9 servers. The formula sets up the necessary server configurations, installs required packages, and configures services like Nginx, MySQL, and WordPress itself.

Awesome Lists containing this project

README

        

# Kartaca WordPress Salt Formula

This Salt formula provides a configuration that accomplishes the specified tasks when applied to Ubuntu 22.04 and CentOS Stream 9 servers.

## Usage

1. Use these Salt formula files to create the "kartaca" user, configure system settings, and install necessary packages.
2. Follow the specified steps to install and configure services like Nginx, MySQL, and WordPress.
3. Provide necessary password and database information using the Salt pillar file.
4. Copy the configuration files from the `files` directory to their respective locations.
5. Apply this formula to minions via the Salt master and perform your configurations.

## Files

- `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.

## Applying the Formula

To apply this formula to your minions, follow these steps:

```bash
$ 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
```

## Development

If you encounter any issues with this formula or have any development suggestions, please open an Issue or submit a Pull Request.

## License

This Salt formula is licensed under the MIT license. For more information, see the [LICENSE](LICENSE) file.