After creating your new RHEL 8/9 systems and backing up your files, you can perform a standard installation for RHEL 8/9.
Follow the Installing Automation Config instructions for Postgresql, Redis, RaaS, and Salt-Master on your RHEL 8/9 systems.
Follow these steps for editing your pillar and state file for RHEL 8/9, and applying highstates to your RHEL 8/9 node.
Important: These installation steps must be performed on the RHEL 7 Salt Master that your new RHEL 8/9 nodes report to.
Procedure
- Open the sse_settings.yaml file in the /srv/pillar/sse/ directory and update the following settings with the appropriate values from your environment:
Update ... |
To... |
Pg_server |
rhel9-postgres |
Redis_Server |
rhel9-redis |
Eapi_servers |
rhel9-raas (passed in as a list) |
Salt_masters |
rhel9-master (passed in as a list |
pg_endpoint |
IP address or DNS name |
pg_port |
5432 (this is the default port) |
pg_username |
salteapi |
pg_password |
abc123 |
redis_endpoint |
IP address or DNS name |
redis_port |
6379 (this is the default port) |
redis_username |
saltredis |
redis_password |
def456 |
eapi_username |
root |
eapi_password |
salt |
eapi_endpoint |
IP address or DNS name |
Customer_id |
This is automatically generated. You can generate it with the cat /proc/sys/kernel/random/uuid" command. |
cluster_id |
saltmaster_cluster_1
Note: This only needs to be updated if you are using a multi-master setup.
|
- Save and close the updated sse_settings.yaml file.
- Edit the Pillar /srv/pillar/top.sls file to add the appropriate minionIDs in these sections:
- {# Pillar Top File #}
- {# Define SSE Servers #}
- {% load_yaml as sse_servers %}
- -rhel9-raas
- -rhel9-postgres
- -rhel9-redis
- -redis9-master
- {% endload %}
- Run the
salt \* saltutil.refresh_pillar
command to refresh the pillar on all nodes. You can verify that the pillar data is correc by running salt \* pillar.items
.
- From the RHEL 7 Salt Master, apply these states in order:
- Postgresql node - salt rhel9-postgres state.sls sse.eapi_database
- Redis node - salt rhel9-redis state.sls sse.eapi_cache
- RaaS node - salt rhel9-raas state.sls sse.eapi_service
- Salt-master node - salt rhel9-master state.sls sse.eapi_plugin
- Install the RaaS license on the rhel9-raas system. The license file is stored in the /etc/raas/ directory.
- Restart the raas service to read the new license using the
systemctl restart raas
command.
- Open a browser and enter the URL for your RaaS Server: https://ip_address_of_raas_server. Log in with username: root and password: salt.
What to do next
At this point, no minions or masters are shown. The next step is to configure the master plugin for the new RHEL 9 master during migration.