Skip to content

Commit

Permalink
Updated collection name and variables
Browse files Browse the repository at this point in the history
  • Loading branch information
fgiorgetti committed Apr 2, 2024
1 parent a551214 commit 09f84fb
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/README.html
__pycache__/
ansible/kubeconfigs/
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ frontend in another and maintain connectivity between the two
services without exposing the backend to the public internet.

[hello-world]: https://github.com/skupperproject/skupper-example-hello-world
[skupper-ansible]: https://galaxy.ansible.com/ui/repo/published/skupper/network/
[skupper-ansible]: https://galaxy.ansible.com/ui/repo/published/skupper/skupper/

## Prerequisites

Expand All @@ -69,12 +69,12 @@ services without exposing the backend to the public internet.
## Step 1: Install the Skupper Ansible collection

Use the `ansible-galaxy` command to install the
`skupper.network` collection.
`skupper.skupper` collection.

_**Terminal:**_

~~~ shell
ansible-galaxy collection install skupper.network
ansible-galaxy collection install skupper.skupper
~~~

## Step 2: Install the Skupper command-line tool
Expand Down Expand Up @@ -195,16 +195,16 @@ Now let's look at the setup playbook.

- hosts: all
collections:
- skupper.network
- skupper.skupper
tasks:
- import_role:
name: skupper
name: skupper_setup
~~~

The two `kubectl` tasks deploy our example application.

The last task is to use the `skupper` role from the
`skupper.network` collection to deploy the Skupper network.
The last task is to use the `skupper_setup` role from the
`skupper.skupper` collection to deploy the Skupper network.

Use the `ansible-playbook` command to run the playbook:

Expand Down Expand Up @@ -252,10 +252,10 @@ To clean everything up, run the teardown playbook.
~~~ yaml
- hosts: all
collections:
- skupper.network
- skupper.skupper
tasks:
- import_role:
name: skupper_delete
name: skupper_teardown

- hosts: west
tasks:
Expand All @@ -266,7 +266,7 @@ To clean everything up, run the teardown playbook.
- command: "kubectl delete -f {{ playbook_dir }}/kubernetes/east.yaml"
~~~

The `skupper_delete` role from the `skupper.network` collection
The `skupper_teardown` role from the `skupper.skupper` collection
removes all the Skupper resources.

_**Terminal:**_
Expand Down
14 changes: 7 additions & 7 deletions ansible/inventory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ all:
ansible_connection: local
hosts:
west:
kubeconfig: "{{ inventory_dir }}/kubeconfigs/west"
namespace: west
skupper_option_kubeconfig: "{{ inventory_dir }}/kubeconfigs/west"
skupper_option_namespace: west
east:
kubeconfig: "{{ inventory_dir }}/kubeconfigs/east"
namespace: east
links:
skupper_option_kubeconfig: "{{ inventory_dir }}/kubeconfigs/east"
skupper_option_namespace: east
skupper_link_list:
- host: west
services:
backend:
skupper_service_list:
- name: backend
ports:
- 8080
targets:
Expand Down
4 changes: 2 additions & 2 deletions ansible/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

- hosts: all
collections:
- skupper.network
- skupper.skupper
tasks:
- import_role:
name: skupper
name: skupper_setup
4 changes: 2 additions & 2 deletions ansible/teardown.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
- hosts: all
collections:
- skupper.network
- skupper.skupper
tasks:
- import_role:
name: skupper_delete
name: skupper_teardown

- hosts: west
tasks:
Expand Down
20 changes: 10 additions & 10 deletions skewer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ overview: |
services without exposing the backend to the public internet.
[hello-world]: https://github.com/skupperproject/skupper-example-hello-world
[skupper-ansible]: https://galaxy.ansible.com/ui/repo/published/skupper/network/
[skupper-ansible]: https://galaxy.ansible.com/ui/repo/published/skupper/skupper/
prerequisites: |
@default@
* Ansible, version 2.14 or later ([installation guide](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html))
Expand All @@ -44,10 +44,10 @@ steps:
- title: Install the Skupper Ansible collection
preamble: |
Use the `ansible-galaxy` command to install the
`skupper.network` collection.
`skupper.skupper` collection.
commands:
west:
- run: ansible-galaxy collection install skupper.network
- run: ansible-galaxy collection install skupper.skupper
- title: Install the Skupper command-line tool
preamble: |
The Skupper Ansible collection uses the Skupper command-line
Expand Down Expand Up @@ -162,16 +162,16 @@ steps:
- hosts: all
collections:
- skupper.network
- skupper.skupper
tasks:
- import_role:
name: skupper
name: skupper_setup
~~~
The two `kubectl` tasks deploy our example application.
The last task is to use the `skupper` role from the
`skupper.network` collection to deploy the Skupper network.
The last task is to use the `skupper_setup` role from the
`skupper.skupper` collection to deploy the Skupper network.
Use the `ansible-playbook` command to run the playbook:
commands:
Expand Down Expand Up @@ -206,10 +206,10 @@ steps:
~~~ yaml
- hosts: all
collections:
- skupper.network
- skupper.skupper
tasks:
- import_role:
name: skupper_delete
name: skupper_teardown
- hosts: west
tasks:
Expand All @@ -220,7 +220,7 @@ steps:
- command: "kubectl delete -f {{ playbook_dir }}/kubernetes/east.yaml"
~~~
The `skupper_delete` role from the `skupper.network` collection
The `skupper_teardown` role from the `skupper.skupper` collection
removes all the Skupper resources.
commands:
west:
Expand Down

0 comments on commit 09f84fb

Please sign in to comment.