Container Infrastructure Management Service for OpenStack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

118 lines
4.7 KiB

  1. #!/bin/sh
  2. echo "START: write-heat-params"
  3. HEAT_PARAMS=/etc/sysconfig/heat-params
  4. [ -f ${HEAT_PARAMS} ] || {
  5. echo "Writing File: $HEAT_PARAMS"
  6. mkdir -p "$(dirname ${HEAT_PARAMS})"
  7. cat > ${HEAT_PARAMS} <<EOF
  8. INSTANCE_NAME="$INSTANCE_NAME"
  9. PROMETHEUS_MONITORING="$PROMETHEUS_MONITORING"
  10. KUBE_API_PUBLIC_ADDRESS="$KUBE_API_PUBLIC_ADDRESS"
  11. KUBE_API_PRIVATE_ADDRESS="$KUBE_API_PRIVATE_ADDRESS"
  12. KUBE_API_PORT="$KUBE_API_PORT"
  13. KUBE_NODE_PUBLIC_IP="$KUBE_NODE_PUBLIC_IP"
  14. KUBE_NODE_IP="$KUBE_NODE_IP"
  15. KUBE_ALLOW_PRIV="$KUBE_ALLOW_PRIV"
  16. TRAEFIK_INGRESS_CONTROLLER_TAG="$TRAEFIK_INGRESS_CONTROLLER_TAG"
  17. ENABLE_CINDER="$ENABLE_CINDER"
  18. ETCD_VOLUME="$ETCD_VOLUME"
  19. ETCD_VOLUME_SIZE="$ETCD_VOLUME_SIZE"
  20. DOCKER_VOLUME="$DOCKER_VOLUME"
  21. DOCKER_VOLUME_SIZE="$DOCKER_VOLUME_SIZE"
  22. DOCKER_STORAGE_DRIVER="$DOCKER_STORAGE_DRIVER"
  23. CGROUP_DRIVER="$CGROUP_DRIVER"
  24. NETWORK_DRIVER="$NETWORK_DRIVER"
  25. FLANNEL_NETWORK_CIDR="$FLANNEL_NETWORK_CIDR"
  26. FLANNEL_NETWORK_SUBNETLEN="$FLANNEL_NETWORK_SUBNETLEN"
  27. FLANNEL_BACKEND="$FLANNEL_BACKEND"
  28. PODS_NETWORK_CIDR="$PODS_NETWORK_CIDR"
  29. PORTAL_NETWORK_CIDR="$PORTAL_NETWORK_CIDR"
  30. ADMISSION_CONTROL_LIST="$ADMISSION_CONTROL_LIST"
  31. ETCD_DISCOVERY_URL="$ETCD_DISCOVERY_URL"
  32. USERNAME="$USERNAME"
  33. PASSWORD="$PASSWORD"
  34. CLUSTER_NETWORK="$CLUSTER_NETWORK"
  35. CLUSTER_NETWORK_NAME="$CLUSTER_NETWORK_NAME"
  36. CLUSTER_SUBNET="$CLUSTER_SUBNET"
  37. TLS_DISABLED="$TLS_DISABLED"
  38. KUBE_DASHBOARD_ENABLED="$KUBE_DASHBOARD_ENABLED"
  39. INFLUX_GRAFANA_DASHBOARD_ENABLED="$INFLUX_GRAFANA_DASHBOARD_ENABLED"
  40. VERIFY_CA="$VERIFY_CA"
  41. CLUSTER_UUID="$CLUSTER_UUID"
  42. MAGNUM_URL="$MAGNUM_URL"
  43. MONITORING_ENABLED="$MONITORING_ENABLED"
  44. PROMETHEUS_OPERATOR_CHART_TAG="$PROMETHEUS_OPERATOR_CHART_TAG"
  45. VOLUME_DRIVER="$VOLUME_DRIVER"
  46. REGION_NAME="$REGION_NAME"
  47. HTTP_PROXY="$HTTP_PROXY"
  48. HTTPS_PROXY="$HTTPS_PROXY"
  49. NO_PROXY="$NO_PROXY"
  50. KUBE_TAG="$KUBE_TAG"
  51. CLOUD_PROVIDER_TAG="$CLOUD_PROVIDER_TAG"
  52. CLOUD_PROVIDER_ENABLED="$CLOUD_PROVIDER_ENABLED"
  53. ETCD_TAG="$ETCD_TAG"
  54. COREDNS_TAG="$COREDNS_TAG"
  55. FLANNEL_TAG="$FLANNEL_TAG"
  56. FLANNEL_CNI_TAG="$FLANNEL_CNI_TAG"
  57. KUBE_VERSION="$KUBE_VERSION"
  58. KUBE_DASHBOARD_VERSION="$KUBE_DASHBOARD_VERSION"
  59. TRUSTEE_USER_ID="$TRUSTEE_USER_ID"
  60. TRUSTEE_PASSWORD="$TRUSTEE_PASSWORD"
  61. TRUST_ID="$TRUST_ID"
  62. AUTH_URL="$AUTH_URL"
  63. INSECURE_REGISTRY_URL="$INSECURE_REGISTRY_URL"
  64. CONTAINER_INFRA_PREFIX="$CONTAINER_INFRA_PREFIX"
  65. SYSTEM_PODS_INITIAL_DELAY="$SYSTEM_PODS_INITIAL_DELAY"
  66. SYSTEM_PODS_TIMEOUT="$SYSTEM_PODS_TIMEOUT"
  67. ETCD_LB_VIP="$ETCD_LB_VIP"
  68. DNS_SERVICE_IP="$DNS_SERVICE_IP"
  69. DNS_CLUSTER_DOMAIN="$DNS_CLUSTER_DOMAIN"
  70. CERT_MANAGER_API="$CERT_MANAGER_API"
  71. CA_KEY="$CA_KEY"
  72. CALICO_TAG="$CALICO_TAG"
  73. CALICO_KUBE_CONTROLLERS_TAG="$CALICO_KUBE_CONTROLLERS_TAG"
  74. CALICO_IPV4POOL="$CALICO_IPV4POOL"
  75. INGRESS_CONTROLLER="$INGRESS_CONTROLLER"
  76. INGRESS_CONTROLLER_ROLE="$INGRESS_CONTROLLER_ROLE"
  77. OCTAVIA_INGRESS_CONTROLLER_TAG="$OCTAVIA_INGRESS_CONTROLLER_TAG"
  78. KUBELET_OPTIONS="$KUBELET_OPTIONS"
  79. KUBECONTROLLER_OPTIONS="$KUBECONTROLLER_OPTIONS"
  80. KUBEAPI_OPTIONS="$KUBEAPI_OPTIONS"
  81. KUBEPROXY_OPTIONS="$KUBEPROXY_OPTIONS"
  82. KUBESCHEDULER_OPTIONS="$KUBESCHEDULER_OPTIONS"
  83. OCTAVIA_ENABLED="$OCTAVIA_ENABLED"
  84. KUBE_SERVICE_ACCOUNT_KEY="$KUBE_SERVICE_ACCOUNT_KEY"
  85. KUBE_SERVICE_ACCOUNT_PRIVATE_KEY="$KUBE_SERVICE_ACCOUNT_PRIVATE_KEY"
  86. PROMETHEUS_TAG="$PROMETHEUS_TAG"
  87. GRAFANA_TAG="$GRAFANA_TAG"
  88. HEAT_CONTAINER_AGENT_TAG="$HEAT_CONTAINER_AGENT_TAG"
  89. KEYSTONE_AUTH_ENABLED="$KEYSTONE_AUTH_ENABLED"
  90. K8S_KEYSTONE_AUTH_TAG="$K8S_KEYSTONE_AUTH_TAG"
  91. PROJECT_ID="$PROJECT_ID"
  92. EXTERNAL_NETWORK_ID="$EXTERNAL_NETWORK_ID"
  93. TILLER_ENABLED="$TILLER_ENABLED"
  94. TILLER_TAG="$TILLER_TAG"
  95. TILLER_NAMESPACE="$TILLER_NAMESPACE"
  96. NODE_PROBLEM_DETECTOR_TAG="$NODE_PROBLEM_DETECTOR_TAG"
  97. NGINX_INGRESS_CONTROLLER_TAG="$NGINX_INGRESS_CONTROLLER_TAG"
  98. AUTO_HEALING_ENABLED="$AUTO_HEALING_ENABLED"
  99. AUTO_HEALING_CONTROLLER="$AUTO_HEALING_CONTROLLER"
  100. AUTO_SCALING_ENABLED="$AUTO_SCALING_ENABLED"
  101. DRAINO_TAG="$DRAINO_TAG"
  102. MAGNUM_AUTO_HEALER_TAG="$MAGNUM_AUTO_HEALER_TAG"
  103. AUTOSCALER_TAG="$AUTOSCALER_TAG"
  104. MIN_NODE_COUNT="$MIN_NODE_COUNT"
  105. MAX_NODE_COUNT="$MAX_NODE_COUNT"
  106. NPD_ENABLED="$NPD_ENABLED"
  107. NODEGROUP_ROLE="$NODEGROUP_ROLE"
  108. NODEGROUP_NAME="$NODEGROUP_NAME"
  109. EOF
  110. }
  111. chown root:root "${HEAT_PARAMS}"
  112. chmod 600 "${HEAT_PARAMS}"
  113. echo "END: write-heat-params"