77UpCloud inventory as a modernized Ansible collection. Current scope only covers UpCloud's servers offering,
88but depending on the demand we might include our other services (networks, (object) storages, routers, databases etc)
99in it as well. Same goes for plugins for other API actions. We recommend using
10- [ Terraform] ( https://upcloud.com/community/tutorials /get-started-terraform/ ) for automated management of your UpCloud
10+ [ Terraform] ( https://upcloud.com/docs/guides /get-started-terraform/ ) for automated management of your UpCloud
1111infrastructure, but we might implement some server control plugins for Ansible in the future if the demand is there.
1212
1313If you find yourself needing a specific service as an inventory, please open an
@@ -41,7 +41,7 @@ servers based on their zone, tags, state, or the network they belong to.
4141Create an ` upcloud.yml ` file with these contents:
4242
4343``` yaml
44- plugin : community. upcloud.upcloud
44+ plugin : upcloud.cloud.servers
4545` ` `
4646
4747Set environment variables for API authentication:
@@ -64,7 +64,7 @@ You should see a list of hosts and their host variables you can use in playbooks
6464You can filter based on multiple data points:
6565
6666``` yaml
67- plugin : community. upcloud.upcloud
67+ plugin : upcloud.cloud.servers
6868zones :
6969 - fi-hel2
7070labels :
@@ -80,7 +80,7 @@ server_group: Group name or UUID
8080Servers can also be grouped by status, zone etc by specifying them as ` keyed_groups`.
8181
8282` ` ` yaml
83- plugin: community. upcloud.upcloud
83+ plugin: upcloud.cloud.servers
8484keyed_groups:
8585 - key: zone
8686 prefix: upcloud_zone
@@ -92,7 +92,7 @@ Examples here assume that API credentials are available as environment variables
9292(`UPCLOUD_USERNAME` & `UPCLOUD_PASSWORD`). They can also be defined in inventory file :
9393
9494` ` ` yaml
95- plugin: community. upcloud.upcloud
95+ plugin: upcloud.cloud.servers
9696username: YOUR_USERNAME
9797password: YOUR_PASSWORD
9898` ` `
@@ -108,7 +108,7 @@ enabled:
108108collections_paths = ~/.ansible/collections:/usr/share/ansible/collections
109109
110110[inventory]
111- enable_plugins = community. upcloud.upcloud
111+ enable_plugins = upcloud.cloud.servers
112112` ` `
113113
114114Note that, if you are using any other plugins, those should be listed in `enable_plugins` as well.
0 commit comments