Ran the recipe as below for Azure machines are added but fails on "-- STAGE PLAN: virtual_machines/mongosingle --"; subsequent run fails immediately:
leow$ ./recipes/azure/singlemongolbed/create kontena test 3
...
Outputs:
kontena_loadbalancer_masters_public_ip_fqdn = [
sinar-kontena-lb-masters.southeastasia.cloudapp.azure.com
]
kontena_master_initial_admin_code = konterraforminitialadmincode
kontena_master_public_ip_fqdn = []
kontena_mongo_internal_fqdn = []
kontena_mongo_public_ip_fqdn = []
kontena_node_count = 0
-- STAGE APPLIED: virtual_machines/common_masters --
linked library/coreos/mongosingle/coreos_mongosingle_cloudconfig.tf
linked library/azure/virtual_machines/mongo/virtual_machine_mongo.tf
-- STAGE PLAN: virtual_machines/mongosingle --
module root: 1 error(s) occurred:
* resource 'azurerm_virtual_machine.kontena_mongo' config: unknown resource 'data.template_file.coreos_cloudconfig_mongo' referenced in variable data.template_file.coreos_cloudconfig_mongo.*.rendered
Vars
leow$ cat vars/azure-singlemongolbed.tfvars
name = "sinar"
azure_client_id = "xxx"
azure_client_secret = "yyyy"
azure_location = "South East Asia"
azure_subscription_id = "zzz"
azure_tenant_id = "aaaa"
Files seems to be there:
leow$ ls -l blueprints/azure/singlemongolbed/
total 184
lrwxr-xr-x 1 leow staff 76 Dec 1 12:26 availability_set_masters.tf -> ../../../library/azure/availability_sets/masters/availability_set_masters.tf
lrwxr-xr-x 1 leow staff 74 Dec 1 12:25 availability_set_mongos.tf -> ../../../library/azure/availability_sets/mongos/availability_set_mongos.tf
lrwxr-xr-x 1 leow staff 69 Dec 1 12:27 coreos_mongosingle_cloudconfig.tf -> ../../../library/coreos/mongosingle/coreos_mongosingle_cloudconfig.tf
lrwxr-xr-x 1 leow staff 43 Dec 1 12:21 kontena_outputs.tf -> ../../../library/kontena/kontena_outputs.tf
lrwxr-xr-x 1 leow staff 45 Dec 1 12:21 kontena_variables.tf -> ../../../library/kontena/kontena_variables.tf
lrwxr-xr-x 1 leow staff 72 Dec 1 12:26 loadbalancer_masters.tf -> ../../../library/azure/network_interfaces/master/loadbalancer_masters.tf
lrwxr-xr-x 1 leow staff 93 Dec 1 12:26 loadbalancer_masters_backend_address_pool.tf -> ../../../library/azure/network_interfaces/master/loadbalancer_masters_backend_address_pool.tf
lrwxr-xr-x 1 leow staff 30 Dec 1 12:21 main.tf -> ../../../library/azure/main.tf
lrwxr-xr-x 1 leow staff 76 Dec 1 12:26 network_interface_master.tf -> ../../../library/azure/network_interfaces/master/network_interface_master.tf
lrwxr-xr-x 1 leow staff 74 Dec 1 12:25 network_interface_mongo.tf -> ../../../library/azure/network_interfaces/mongo/network_interface_mongo.tf
lrwxr-xr-x 1 leow staff 34 Dec 1 12:21 provider.tf -> ../../../library/azure/provider.tf
lrwxr-xr-x 1 leow staff 89 Dec 1 12:26 public_ip_loadbalancer_masters.tf -> ../../../library/azure/public_ips/loadbalancers/masters/public_ip_loadbalancer_masters.tf
lrwxr-xr-x 1 leow staff 60 Dec 1 12:26 public_ip_master.tf -> ../../../library/azure/public_ips/master/public_ip_master.tf
lrwxr-xr-x 1 leow staff 58 Dec 1 12:25 public_ip_mongo.tf -> ../../../library/azure/public_ips/mongo/public_ip_mongo.tf
lrwxr-xr-x 1 leow staff 45 Dec 1 12:21 resource_group.tf -> ../../../library/azure/base/resource_group.tf
lrwxr-xr-x 1 leow staff 72 Dec 1 12:26 security_group_masters.tf -> ../../../library/azure/security_groups/masters/security_group_masters.tf
lrwxr-xr-x 1 leow staff 70 Dec 1 12:25 security_group_mongos.tf -> ../../../library/azure/security_groups/mongos/security_group_mongos.tf
lrwxr-xr-x 1 leow staff 46 Dec 1 12:21 storage_account.tf -> ../../../library/azure/base/storage_account.tf
lrwxr-xr-x 1 leow staff 48 Dec 1 12:21 storage_container.tf -> ../../../library/azure/base/storage_container.tf
lrwxr-xr-x 1 leow staff 37 Dec 1 12:21 subnet.tf -> ../../../library/azure/base/subnet.tf
lrwxr-xr-x 1 leow staff 70 Dec 1 12:27 virtual_machine_mongo.tf -> ../../../library/azure/virtual_machines/mongo/virtual_machine_mongo.tf
lrwxr-xr-x 1 leow staff 59 Dec 1 12:25 virtual_machines.tf -> ../../../library/azure/virtual_machines/virtual_machines.tf
lrwxr-xr-x 1 leow staff 46 Dec 1 12:21 virtual_network.tf -> ../../../library/azure/base/virtual_network.tf
Ran the recipe as below for Azure machines are added but fails on "-- STAGE PLAN: virtual_machines/mongosingle --"; subsequent run fails immediately:
Vars
Files seems to be there: