You've already forked ansible-role-common
Updated to persist state
This commit is contained in:
@@ -73,14 +73,21 @@ local gen_pipeline(distro) =
|
||||
image: 'hashicorp/terraform:1.1.7',
|
||||
commands: ['cd terraform',
|
||||
'terraform init',
|
||||
'terraform plan',
|
||||
'terraform plan -out ./data/',
|
||||
'terraform apply -auto-approve',
|
||||
],
|
||||
environment: {
|
||||
TF_VAR_root_pass: {from_secret: 'root_pass'},
|
||||
TF_VAR_linode_api_token: {from_secret: 'linode_api_token'},
|
||||
TF_VAR_ssh_pubkey: {from_secret: 'TF_VAR_ssh_pubkey'},
|
||||
}},]
|
||||
},
|
||||
volumes: [{ name: 'dockersock', path: '/var/run' },],
|
||||
},],
|
||||
volumes:
|
||||
[{
|
||||
name: 'terraform-data',
|
||||
host: { path: '/mnt/nfs/swarm/runners'},
|
||||
}],
|
||||
},
|
||||
gen_pipeline('centos7'),
|
||||
gen_pipeline('centos8'),
|
||||
|
||||
Reference in New Issue
Block a user