Skip to content

Instantly share code, notes, and snippets.

@chbrown13
Created July 28, 2017 17:18
Show Gist options
  • Save chbrown13/b682ceb30b65175d1997694c30d7581e to your computer and use it in GitHub Desktop.
Save chbrown13/b682ceb30b65175d1997694c30d7581e to your computer and use it in GitHub Desktop.
# Testing satellite-populate actions on AbstractDockerContainer entities
vars:
resource_name: docker_source
hub_name: docker hub
registry_name: docker registry
name: docker containers
new_name: provision2
actions:
# Create
- model: DockerComputeResource
register: resource
data:
name: "{{ resource_name }}"
provider: Docker
- model: DockerHubContainer
register: test_hub
data:
name: "{{ hub_name }}"
repository_name: test
tag: satellite
compute_resource:
from_registry: resource
- model: DockerRegistryContainer
register: test_registry
data:
name: "{{ registry_name }}"
repository_name: test
tag: satellite
compute_resource:
from_registry: resource
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment