Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove random from yaml examples #557

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions examples/yaml/kubernetes/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ runtime: yaml
# path: ../../../bin

resources:
random:
type: random:RandomString
properties:
length: 8
special: false

provider:
type: pulumi:providers:threefold
options:
Expand All @@ -38,7 +32,7 @@ resources:
dependsOn:
- ${scheduler}
properties:
name: net_${random.result}
name: net_pulumi
description: test network
nodes:
- ${scheduler.nodes[0]}
Expand All @@ -53,8 +47,8 @@ resources:
- ${network}
properties:
master:
name: kubernetes_${random.result}
network_name: net_${random.result}
name: kubernetes_pulumi
network_name: net_pulumi
node_id: ${scheduler.nodes[0]}
disk_size: 2
planetary: true
Expand All @@ -63,23 +57,23 @@ resources:
memory: 2048

workers:
- name: worker1_${random.result}
network_name: net_${random.result}
- name: worker1_pulumi
network_name: net_pulumi
node_id: ${scheduler.nodes[0]}
disk_size: 2
cpu: 2
memory: 2048
mycelium: true
- name: worker2_${random.result}
network_name: net_${random.result}
- name: worker2_pulumi
network_name: net_pulumi
node_id: ${scheduler.nodes[0]}
disk_size: 2
cpu: 2
memory: 2048
mycelium: true

token: t123456789
network_name: net_${random.result}
network_name: net_pulumi
ssh_key:

outputs:
Expand Down
24 changes: 9 additions & 15 deletions examples/yaml/multiple_vms/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: pulumi-threefold
runtime: yaml

resources:
random:
type: random:RandomString
properties:
length: 8
special: false

provider:
type: pulumi:providers:threefold
options:
Expand All @@ -32,7 +26,7 @@ resources:
dependsOn:
- ${scheduler}
properties:
name: net_${random.result}
name: net_pulumi
description: test network
nodes:
- ${scheduler.nodes[0]}
Expand All @@ -49,14 +43,14 @@ resources:
- ${network}
properties:
node_id: ${scheduler.nodes[0]}
name: deployment_${random.result}
network_name: net_${random.result}
name: deployment_pulumi
network_name: net_pulumi
vms:
- name: vm_${random.result}
- name: vm_pulumi
node_id: ${scheduler.nodes[0]}
flist: https://hub.grid.tf/tf-official-apps/base:latest.flist
entrypoint: "/sbin/zinit init"
network_name: net_${random.result}
network_name: net_pulumi
cpu: 2
memory: 4000
planetary: true
Expand All @@ -68,11 +62,11 @@ resources:
env_vars:
SSH_KEY:

- name: vm2_${random.result}
- name: vm2_pulumi
node_id: ${scheduler.nodes[0]}
flist: https://hub.grid.tf/tf-official-apps/base:latest.flist
entrypoint: "/sbin/zinit init"
network_name: net_${random.result}
network_name: net_pulumi
cpu: 2
memory: 4000
planetary: true
Expand All @@ -84,11 +78,11 @@ resources:
env_vars:
SSH_KEY:

- name: vm3_${random.result}
- name: vm3_pulumi
node_id: ${scheduler.nodes[0]}
flist: https://hub.grid.tf/tf-official-apps/base:latest.flist
entrypoint: "/sbin/zinit init"
network_name: net_${random.result}
network_name: net_pulumi
cpu: 2
memory: 4000
planetary: true
Expand Down
16 changes: 5 additions & 11 deletions examples/yaml/virtual_machine/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: pulumi-threefold
runtime: yaml

resources:
random:
type: random:RandomString
properties:
length: 8
special: false

provider:
type: pulumi:providers:threefold
options:
Expand All @@ -32,7 +26,7 @@ resources:
dependsOn:
- ${scheduler}
properties:
name: net_${random.result}
name: net_pulumi
description: test network
nodes:
- ${scheduler.nodes[0]}
Expand All @@ -49,14 +43,14 @@ resources:
- ${network}
properties:
node_id: ${scheduler.nodes[0]}
name: deployment_${random.result}
network_name: net_${random.result}
name: deployment_pulumi
network_name: net_pulumi
vms:
- name: vm_${random.result}
- name: vm_pulumi
node_id: ${scheduler.nodes[0]}
flist: https://hub.grid.tf/tf-official-apps/base:latest.flist
entrypoint: "/sbin/zinit init"
network_name: net_${random.result}
network_name: net_pulumi
cpu: 2
memory: 256
planetary: true
Expand Down
8 changes: 1 addition & 7 deletions examples/yaml/zdb/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: pulumi-threefold
runtime: yaml

resources:
random:
type: random:RandomString
properties:
length: 8
special: false

provider:
type: pulumi:providers:threefold
options:
Expand All @@ -31,7 +25,7 @@ resources:
provider: ${provider}
properties:
node_id: ${scheduler.nodes[0]}
name: zdb_${random.result}
name: zdb_pulumi
zdbs:
- name: zdbsTest
size: 2
Expand Down
Loading