Skip to content

Commit

Permalink
Revert become change, remove superfluous docs in main readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Daemonslayer2048 committed Jan 8, 2025
1 parent 315b9df commit e07597e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 34 deletions.
38 changes: 5 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,35 +57,15 @@ Deployment environment must have Ansible 2.9.0+

Usage
-----
Create a new directory based on the one of the sample inventory directories within the `docs` directory:
Create an Ansible inventory file (or folder), you can check the docs folder for examples (`basic_sample_inventory` or `advanced_sample_inventory`).

```bash
cp -R ./docs/basic_sample_inventory ./inventory
```

Second, edit `inventory/hosts.yaml` to match the system information gathered above. For example:

```yaml
---
rke2_cluster:
children:
rke2_servers:
hosts:
server0.example.com:
rke2_agents:
hosts:
agent0.example.com:
```
If needed, you can also create `inventory/group_vars/rke2_agents.yml` and `inventory/my-cluster/group_vars/rke2_servers.yml` to match your environment.

Start provisioning of the cluster using the following command:
> [!NOTE]
> More detailed information can be found [here](./docs/README.md)
Start provisioning the cluster using the following command:
```bash
ansible-playbook site.yml -i inventory/hosts.yml
ansible-playbook site.yml -i inventory/hosts.yml -b
```
> [!NOTE]
> More detailed information can be found [here](./docs/README.md)


Tarball Install/Air-Gap Install
Expand All @@ -98,14 +78,6 @@ Kubeconfig
The root user will have the `kubeconfig` and `kubectl` made available, to access your cluster login into any server node and `kubectl` will be available for use immediately.


Available configurations
------------------------
Variables should be set in `inventory/group_vars/rke2_agents.yml` and `inventory/group_vars/rke2_servers.yml`.

> [!NOTE]
> More detailed information can be found [here](./docs/README.md)


Uninstall RKE2
---------------
Note: Uninstalling RKE2 deletes the cluster data and all of the scripts.
Expand Down
2 changes: 1 addition & 1 deletion site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
- name: RKE2 play
hosts: all
any_errors_fatal: true
become: true
# become: true
roles:
- role: rke2

0 comments on commit e07597e

Please sign in to comment.