mirror of https://github.com/apache/cloudstack.git
Fix linter
This commit is contained in:
parent
fe3e914a85
commit
98bb4afd8b
|
|
@ -30,17 +30,17 @@ write_files:
|
|||
owner: root:root
|
||||
content: |
|
||||
#!/bin/bash -e
|
||||
|
||||
|
||||
if [[ -f "/home/cloud/success" ]]; then
|
||||
echo "Already provisioned!"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
ISO_MOUNT_DIR=/mnt/etcddisk
|
||||
BINARIES_DIR=${ISO_MOUNT_DIR}/
|
||||
ATTEMPT_ONLINE_INSTALL=false
|
||||
setup_complete=false
|
||||
|
||||
|
||||
OFFLINE_INSTALL_ATTEMPT_SLEEP={{ k8s.install.wait.time }}
|
||||
MAX_OFFLINE_INSTALL_ATTEMPTS={{ k8s.install.reattempts.count }}
|
||||
if [[ -z $OFFLINE_INSTALL_ATTEMPT_SLEEP || $OFFLINE_INSTALL_ATTEMPT_SLEEP -eq 0 ]]; then
|
||||
|
|
@ -89,7 +89,7 @@ write_files:
|
|||
sleep $OFFLINE_INSTALL_ATTEMPT_SLEEP
|
||||
offline_attempts=$[$offline_attempts + 1]
|
||||
done
|
||||
|
||||
|
||||
if [[ "$PATH" != *:/opt/bin && "$PATH" != *:/opt/bin:* ]]; then
|
||||
export PATH=$PATH:/opt/bin
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ write_files:
|
|||
etcd:
|
||||
external:
|
||||
endpoints:
|
||||
{{ etcd.etcd_endpoint_list }}
|
||||
{{ etcd.etcd_endpoint_list }}
|
||||
---
|
||||
apiVersion: kubeadm.k8s.io/v1beta3
|
||||
kind: InitConfiguration
|
||||
|
|
@ -263,7 +263,7 @@ write_files:
|
|||
advertiseAddress: {{ k8s_control.server_ip }}
|
||||
bindPort: {{ k8s.api_server_port }}
|
||||
certificateKey: {{ k8s_control.certificate_key }}
|
||||
|
||||
|
||||
|
||||
- path: /opt/bin/deploy-kube-system
|
||||
permissions: '0700'
|
||||
|
|
@ -340,7 +340,7 @@ write_files:
|
|||
sudo touch /home/cloud/success
|
||||
echo "true" > /home/cloud/success
|
||||
|
||||
{% if registry is defined %}
|
||||
{% if registry is defined %}
|
||||
- path: /opt/bin/setup-containerd
|
||||
permissions: '0755'
|
||||
owner: root:root
|
||||
|
|
@ -358,7 +358,7 @@ write_files:
|
|||
echo "Restarting containerd service"
|
||||
systemctl daemon-reload
|
||||
systemctl restart containerd
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
- path: /etc/systemd/system/deploy-kube-system.service
|
||||
permissions: '0755'
|
||||
|
|
|
|||
|
|
@ -4890,7 +4890,7 @@ public class ManagementServerImpl extends ManagerBase implements ManagementServe
|
|||
}
|
||||
|
||||
@Override
|
||||
@ActionEvent(eventType = EventTypes.EVENT_REGISTER_CNI_CONFIG, eventDescription = "registering CNI configration", async = true)
|
||||
@ActionEvent(eventType = EventTypes.EVENT_REGISTER_CNI_CONFIG, eventDescription = "registering CNI configuration", async = true)
|
||||
public UserData registerCniConfiguration(RegisterCniConfigurationCmd cmd) {
|
||||
final Account owner = getOwner(cmd);
|
||||
checkForUserDataByName(cmd, owner);
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ function prepare() {
|
|||
function packer_build() {
|
||||
log INFO "building new image with packer"
|
||||
#cd ${appliance_build_name} && packer build template.json && cd ..
|
||||
cd 22.04 && packer build ${appliance_build_name}.json && cd ..
|
||||
cd 22.04 && packer build ${appliance_build_name}.json && cd ..
|
||||
}
|
||||
|
||||
function stage_vmx() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue