You've already forked ansible-role-common
Don't start runners. Lets autoscale
This commit is contained in:
@@ -59,37 +59,10 @@ local gen_pipeline(distro) =
|
||||
name: 'dockersock',
|
||||
temp: {},
|
||||
},],
|
||||
depends_on:
|
||||
['runners']
|
||||
};
|
||||
|
||||
// Generate the output
|
||||
[
|
||||
{kind: 'pipeline',
|
||||
type: 'docker',
|
||||
name: 'runners',
|
||||
steps:
|
||||
[{name: 'Provision with terraform',
|
||||
image: 'hashicorp/terraform:1.1.7',
|
||||
commands: ['cd terraform',
|
||||
'terraform init',
|
||||
'terraform plan -out /data/runners.plan',
|
||||
'terraform apply /data/runners.plan',
|
||||
'sleep 20',
|
||||
],
|
||||
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: 'terraform-data', path: '/data' },],
|
||||
},],
|
||||
volumes:
|
||||
[{
|
||||
name: 'terraform-data',
|
||||
host: { path: '/mnt/nfs/swarm/runners'},
|
||||
}],
|
||||
},
|
||||
gen_pipeline('centos7'),
|
||||
gen_pipeline('centos8'),
|
||||
gen_pipeline('rockylinux8'),
|
||||
|
||||
Reference in New Issue
Block a user