-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 000a777
Showing
13 changed files
with
216 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
*.tgz | ||
|
||
*.pivotal | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ver="$(cat version)" | ||
ver=$((ver+1)) | ||
VERSTR="0.0.1-build.${ver}" | ||
export PRODUCT_NAME="concourse-worker-${VERSTR}.pivotal" | ||
echo "Baking Version ${VERSTR}" | ||
echo "${ver}" > version | ||
|
||
kiln bake \ | ||
--version $VERSTR \ | ||
--metadata base.yml \ | ||
--forms-directory forms \ | ||
--properties-directory properties \ | ||
--releases-directory releases \ | ||
--instance-groups-directory instance_groups \ | ||
--jobs-directory jobs \ | ||
--stemcells-directory stemcell \ | ||
--icon icon.png \ | ||
--output-file "${PRODUCT_NAME}" | ||
|
||
#om -k upload-product -p "${PRODUCT_NAME}" | ||
#om -k stage-product -p control-plane -v "${VERSTR}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: concourse-workers | ||
label: Concourse External Workers | ||
description: Concourse External Workers | ||
|
||
metadata_version: "2.2" | ||
minimum_version_for_upgrade: 0.0 | ||
product_version: $( version ) | ||
|
||
icon_image: $( icon ) | ||
|
||
rank: 90 | ||
serial: false | ||
|
||
stemcell_criteria: $( stemcell ) | ||
|
||
releases: | ||
- $( release "concourse" ) | ||
- $( release "garden-runc" ) | ||
|
||
form_types: | ||
- $( form "tsa" ) | ||
- $( form "worker" ) | ||
|
||
job_types: | ||
- $( instance_group "worker" ) | ||
|
||
property_blueprints: | ||
- $( property "tsa_host_key" ) | ||
- $( property "worker_key" ) | ||
- $( property "tsa_endpoint" ) | ||
- $( property "tsa_port" ) | ||
- $( property "worker_tag" ) | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
- name: tsa | ||
label: 'TSA' | ||
description: 'Control Plane TSA' | ||
property_inputs: | ||
- reference: .properties.tsa_host_key | ||
label: 'TSA Host Public Key' | ||
description: 'Configure TSA Host Public Key' | ||
- reference: .properties.worker_key | ||
label: 'Worker Key' | ||
description: '... worker key' | ||
- reference: .properties.tsa_endpoint | ||
label: 'TSA Endpoint' | ||
description: 'IP address or endpoint' | ||
placeholder: tsa.example.com | ||
- reference: .properties.tsa_port | ||
label: 'TSA Port' | ||
description: 'TSA Port' | ||
placeholder: 2222 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
name: worker | ||
label: Worker | ||
description: | | ||
Sets the worker configuration | ||
markdown: | | ||
### What is this? | ||
property_inputs: | ||
- reference: .properties.worker_tag | ||
label: 'Worker Tag' | ||
description: 'Concourse tag to assign to the workers' | ||
placeholder: sandbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: worker | ||
label: Concourse Worker VM | ||
resource_label: Concourse Worker VM | ||
description: Runs your concourse jobs | ||
templates: | ||
- $( job "worker" ) | ||
- $( job "garden" ) | ||
- $( job "baggageclaim" ) | ||
|
||
resource_definitions: | ||
- name: cpu | ||
type: integer | ||
label: CPU | ||
configurable: true | ||
default: 2 | ||
constraints: | ||
min: 2 | ||
|
||
- name: ram | ||
type: integer | ||
label: RAM | ||
configurable: true | ||
default: 8192 | ||
constraints: | ||
min: 8192 | ||
|
||
- name: ephemeral_disk | ||
type: integer | ||
label: Ephemeral Disk | ||
configurable: true | ||
default: 10240 | ||
constraints: | ||
min: 10240 | ||
|
||
- name: persistent_disk | ||
type: integer | ||
label: Persistent Disk | ||
configurable: false | ||
default: 0 | ||
|
||
max_in_flight: 1 | ||
single_az_only: false | ||
|
||
instance_definition: | ||
name: instances | ||
type: integer | ||
label: Instances | ||
configurable: true | ||
default: 1 | ||
constraints: | ||
min: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
name: baggageclaim | ||
release: concourse | ||
provides: | | ||
baggageclaim: | ||
as: worker-baggageclaim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
name: garden | ||
release: garden-runc | ||
manifest: | | ||
garden: | ||
forward_address: 127.0.0.1:7777 | ||
listen_network: tcp | ||
listen_address: 127.0.0.1:7777 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
name: worker | ||
release: concourse | ||
consumes: | | ||
baggagclaim: | ||
from: worker-baggageclaim | ||
manifest: | | ||
drain_timeout: 10m | ||
tags: [(( .properties.worker_tag.value ))] | ||
tsa: | ||
worker_key: | ||
private_key: (( .properties.worker_key.value )) | ||
host: (( .properties.tsa_endpoint.value )) | ||
port: (( .properties.tsa_port.value )) | ||
host_public_key: (( .properties.tsa_host_key.value )) | ||
registration_mode: forward | ||
garden: | ||
address: 127.0.0.1:7777 | ||
forward_address: 127.0.0.1:7777 | ||
baggageclaim: | ||
forward_address: 127.0.0.1:7788 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
- name: tsa_host_key | ||
type: string | ||
configurable: true | ||
optional: false | ||
|
||
- name: worker_key | ||
type: text | ||
configurable: true | ||
optional: false | ||
|
||
- name: tsa_endpoint | ||
type: domain | ||
configurable: true | ||
optional: false | ||
|
||
- name: tsa_port | ||
type: port | ||
configurable: true | ||
optional: false | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- name: worker_tag | ||
type: string | ||
configurable: true | ||
optional: false | ||
default: sandbox_worker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
21 |