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.
 
 
 
 
 

70 lines
2.1 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_ALLOW_PRIV="$KUBE_ALLOW_PRIV"
  11. KUBE_MASTER_IP="$KUBE_MASTER_IP"
  12. KUBE_API_PORT="$KUBE_API_PORT"
  13. KUBE_NODE_PUBLIC_IP="$KUBE_NODE_PUBLIC_IP"
  14. KUBE_NODE_IP="$KUBE_NODE_IP"
  15. ETCD_SERVER_IP="$ETCD_SERVER_IP"
  16. ENABLE_CINDER="$ENABLE_CINDER"
  17. DOCKER_VOLUME="$DOCKER_VOLUME"
  18. DOCKER_VOLUME_SIZE="$DOCKER_VOLUME_SIZE"
  19. DOCKER_STORAGE_DRIVER="$DOCKER_STORAGE_DRIVER"
  20. CGROUP_DRIVER="$CGROUP_DRIVER"
  21. NETWORK_DRIVER="$NETWORK_DRIVER"
  22. REGISTRY_ENABLED="$REGISTRY_ENABLED"
  23. REGISTRY_PORT="$REGISTRY_PORT"
  24. SWIFT_REGION="$SWIFT_REGION"
  25. REGISTRY_CONTAINER="$REGISTRY_CONTAINER"
  26. REGISTRY_INSECURE="$REGISTRY_INSECURE"
  27. REGISTRY_CHUNKSIZE="$REGISTRY_CHUNKSIZE"
  28. TLS_DISABLED="$TLS_DISABLED"
  29. VERIFY_CA="$VERIFY_CA"
  30. CLUSTER_UUID="$CLUSTER_UUID"
  31. MAGNUM_URL="$MAGNUM_URL"
  32. AUTH_URL="$AUTH_URL"
  33. USERNAME="$USERNAME"
  34. PASSWORD="$PASSWORD"
  35. VOLUME_DRIVER="$VOLUME_DRIVER"
  36. REGION_NAME="$REGION_NAME"
  37. HTTP_PROXY="$HTTP_PROXY"
  38. HTTPS_PROXY="$HTTPS_PROXY"
  39. NO_PROXY="$NO_PROXY"
  40. WAIT_CURL="$WAIT_CURL"
  41. KUBE_TAG="$KUBE_TAG"
  42. FLANNEL_NETWORK_CIDR="$FLANNEL_NETWORK_CIDR"
  43. PODS_NETWORK_CIDR="$PODS_NETWORK_CIDR"
  44. KUBE_VERSION="$KUBE_VERSION"
  45. TRUSTEE_USER_ID="$TRUSTEE_USER_ID"
  46. TRUSTEE_PASSWORD="$TRUSTEE_PASSWORD"
  47. TRUST_ID="$TRUST_ID"
  48. CLOUD_PROVIDER_ENABLED="$CLOUD_PROVIDER_ENABLED"
  49. INSECURE_REGISTRY_URL="$INSECURE_REGISTRY_URL"
  50. CONTAINER_INFRA_PREFIX="$CONTAINER_INFRA_PREFIX"
  51. DNS_SERVICE_IP="$DNS_SERVICE_IP"
  52. DNS_CLUSTER_DOMAIN="$DNS_CLUSTER_DOMAIN"
  53. KUBELET_OPTIONS="$KUBELET_OPTIONS"
  54. KUBEPROXY_OPTIONS="$KUBEPROXY_OPTIONS"
  55. OCTAVIA_ENABLED="$OCTAVIA_ENABLED"
  56. HEAT_CONTAINER_AGENT_TAG="$HEAT_CONTAINER_AGENT_TAG"
  57. AUTO_HEALING_ENABLED="$AUTO_HEALING_ENABLED"
  58. AUTO_HEALING_CONTROLLER="$AUTO_HEALING_CONTROLLER"
  59. NODEGROUP_ROLE="$NODEGROUP_ROLE"
  60. NODEGROUP_NAME="$NODEGROUP_NAME"
  61. EOF
  62. }
  63. chown root:root "${HEAT_PARAMS}"
  64. chmod 600 "${HEAT_PARAMS}"
  65. echo "END: write-heat-params"