-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
53 lines (53 loc) · 1.52 KB
/
devfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
schemaVersion: 2.1.0
metadata:
name: ansible-dev-space
version: 0.1.0
projects:
- name: dev-spaces-ansible
git:
remotes:
origin: 'https://github.com/jwennerberg/dev-spaces-ansible.git'
- name: ansible-examples
git:
remotes:
origin: 'https://github.com/ansible/ansible-examples.git'
- name: openshift-playbooks
git:
remotes:
origin: 'https://github.com/jwennerberg/openshift-playbooks.git'
checkoutFrom:
revision: master
- name: galaxy-role-skeleton
git:
remotes:
origin: 'https://github.com/jwennerberg/galaxy-role-skeleton.git'
checkoutFrom:
revision: master
components:
- name: ansible
container:
image: quay.io/jwennerberg/ansible-dev-image:latest
memoryLimit: 512Mi
mountSources: true
volumeMounts:
- name: venv
path: /home/user/.venv
- name: ansible-volume
path: /home/user/.ansible
- name: venv
volume: {}
- name: ansible-volume
volume: {}
commands:
- id: create-ansible-role
exec:
component: ansible
commandLine: 'read -e -p "Enter Role Name: " NAME; ansible-galaxy init --role-skeleton=galaxy-role-skeleton/skeleton_empty $NAME'
label: Create Ansible Role
workingDir: '${PROJECTS_ROOT}'
- exec:
commandLine: 'read -e -p "Enter Collection Name: " COLLECTION; ansible-galaxy collection install $COLLECTION'
component: ansible
label: Install Collection
workingDir: '${HOME}'
id: install-collection