-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcpi.yml
72 lines (65 loc) · 2.02 KB
/
cpi.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
- type: replace
path: /releases/-
value:
name: lxd-bosh-cpi
url: https://github.com/a2geek/bosh-lxd-cpi-release/releases/download/v4/bosh-lxd-cpi-release.tgz
sha1: eb3ee7b01e0ba8a9d201e478324d42a596102b70
- type: replace
path: /resource_pools/name=vms/stemcell?
value:
url: https://bosh.io/d/stemcells/bosh-openstack-kvm-ubuntu-jammy-go_agent?v=1.682
sha1: 6ba1f68609242efff0b64a60e55608dd665123a5
# Configure LXD sizes
- type: replace
path: /resource_pools/name=vms/cloud_properties?
value:
instance_type: c4-m8
ephemeral_disk: 32_768
# Add CPI job
- type: replace
path: /instance_groups/name=bosh/jobs/-
value: &cpi_job
name: lxd_cpi
release: lxd-bosh-cpi
- type: replace
path: /instance_groups/name=bosh/properties/director/cpi_job?
value: lxd_cpi
- type: replace
path: /cloud_provider/template?
value: *cpi_job
# This is for rendering within the VM once stood up
- type: replace
path: /instance_groups/name=bosh/properties/lxd_cpi?
value:
server: &server_settings
project_name: ((server_project_name))
profile_name: ((server_profile_name))
network_name: ((server_network_name))
storage_pool_name: ((server_storage_pool_name))
url: ((server_url))
insecure_skip_verify: ((server_insecure))
tls_client_cert: ((server_client_cert))
tls_client_key: ((server_client_key))
agent:
mbus: nats://((internal_ip)):4222
agent_config: &agent_config_settings
type: CDROM
label: "config-2"
metadata_path: "ec2/latest/meta-data.json"
userdata_path: "ec2/latest/user-data"
filestore_path: "/var/vcap/store/agent-data"
throttle_config:
enabled: false
# This is for initial standup of VM (bootstrap?)
- type: replace
path: /cloud_provider/properties/lxd_cpi?
value:
server: *server_settings
agent:
mbus: "https://mbus:((mbus_bootstrap_password))@0.0.0.0:6868"
agent_config:
<<: *agent_config_settings
filestore_path: "/tmp"
throttle_config:
enabled: false