summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2018-10-21 21:55:34 +0200
committerKim Hagen <kim.sidney@gmail.com>2018-10-21 21:55:34 +0200
commitdb29fecaa5f047d44a652d9aca21bff5ec1292b4 (patch)
treea6f0f0496604a81be2786b356bec215788d4a1c6
parent3afbcfff2f6e3faf50c0dffee55e7c48b50755b5 (diff)
downloadvyos-walinuxagent-db29fecaa5f047d44a652d9aca21bff5ec1292b4.tar.gz
vyos-walinuxagent-db29fecaa5f047d44a652d9aca21bff5ec1292b4.zip
Make it work fot vyos
-rw-r--r--config/debian/waagent.conf106
l---------debian/walinuxagent.service2
-rwxr-xr-xinit/debian/walinuxagent.service23
-rwxr-xr-xsetup.py8
4 files changed, 138 insertions, 1 deletions
diff --git a/config/debian/waagent.conf b/config/debian/waagent.conf
new file mode 100644
index 0000000..72ff7c0
--- /dev/null
+++ b/config/debian/waagent.conf
@@ -0,0 +1,106 @@
+#
+# Microsoft Azure Linux Agent Configuration
+#
+
+# Enable instance creation
+Provisioning.Enabled=n
+
+# Rely on cloud-init to provision
+Provisioning.UseCloudInit=y
+
+# Password authentication for root account will be unavailable.
+Provisioning.DeleteRootPassword=n
+
+# Generate fresh host key pair.
+Provisioning.RegenerateSshHostKeyPair=n
+
+# Supported values are "rsa", "dsa" and "ecdsa".
+Provisioning.SshHostKeyPairType=rsa
+
+# Monitor host name changes and publish changes via DHCP requests.
+Provisioning.MonitorHostName=n
+
+# Decode CustomData from Base64.
+Provisioning.DecodeCustomData=n
+
+# Execute CustomData after provisioning.
+Provisioning.ExecuteCustomData=n
+
+# Algorithm used by crypt when generating password hash.
+#Provisioning.PasswordCryptId=6
+
+# Length of random salt used when generating password hash.
+#Provisioning.PasswordCryptSaltLength=10
+
+# Allow reset password of sys user
+Provisioning.AllowResetSysUser=n
+
+# Format if unformatted. If 'n', resource disk will not be mounted.
+ResourceDisk.Format=n
+
+# File system on the resource disk
+# Typically ext3 or ext4. FreeBSD images should use 'ufs2' here.
+ResourceDisk.Filesystem=ext4
+
+# Mount point for the resource disk
+ResourceDisk.MountPoint=/mnt
+
+# Create and use swapfile on resource disk.
+ResourceDisk.EnableSwap=n
+
+# Size of the swapfile.
+ResourceDisk.SwapSizeMB=0
+
+# Comma-seperated list of mount options. See man(8) for valid options.
+ResourceDisk.MountOptions=None
+
+# Respond to load balancer probes if requested by Microsoft Azure.
+LBProbeResponder=y
+
+# Enable verbose logging (y|n)
+Logs.Verbose=n
+
+# Is FIPS enabled
+OS.EnableFIPS=n
+
+# Root device timeout in seconds.
+OS.RootDeviceScsiTimeout=300
+
+# If "None", the system default version is used.
+OS.OpensslPath=None
+
+# Set the path to SSH keys and configuration files
+OS.SshDir=/etc/ssh
+
+# If set, agent will use proxy server to access internet
+#HttpProxy.Host=None
+#HttpProxy.Port=None
+
+# Detect Scvmm environment, default is n
+# DetectScvmmEnv=n
+
+# Enable RDMA management and set up, should only be used in HPC images
+# OS.EnableRDMA=y
+
+# Enable RDMA kernel update, this value is effective on Ubuntu
+# OS.UpdateRdmaDriver=y
+
+# Enable or disable goal state processing auto-update, default is enabled
+# AutoUpdate.Enabled=y
+
+# Determine the update family, this should not be changed
+# AutoUpdate.GAFamily=Prod
+
+# Determine if the overprovisioning feature is enabled. If yes, hold extension
+# handling until inVMArtifactsProfile.OnHold is false.
+# Default is disabled
+# EnableOverProvisioning=n
+
+# Allow fallback to HTTP if HTTPS is unavailable
+# Note: Allowing HTTP (vs. HTTPS) may cause security risks
+# OS.AllowHTTP=n
+
+# Add firewall rules to protect access to Azure host node services
+# Note:
+# - The default is false to protect the state of exising VMs
+OS.EnableFirewall=n
diff --git a/debian/walinuxagent.service b/debian/walinuxagent.service
index b1c7ed6..de1fbe7 120000
--- a/debian/walinuxagent.service
+++ b/debian/walinuxagent.service
@@ -1 +1 @@
-../init/ubuntu/walinuxagent.service \ No newline at end of file
+../init/debian/walinuxagent.service \ No newline at end of file
diff --git a/init/debian/walinuxagent.service b/init/debian/walinuxagent.service
new file mode 100755
index 0000000..0512915
--- /dev/null
+++ b/init/debian/walinuxagent.service
@@ -0,0 +1,23 @@
+#
+# NOTE:
+# This file hosted on WALinuxAgent repository only for reference purposes.
+# Please refer to a recent image to find out the up-to-date systemd unit file.
+#
+
+[Unit]
+Description=Azure Linux Agent
+
+After=network-online.target cloud-init.service
+Wants=network-online.target
+
+ConditionFileIsExecutable=/usr/sbin/waagent
+ConditionPathExists=/etc/waagent.conf
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/python3 -u /usr/sbin/waagent -daemon
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/setup.py b/setup.py
index f59f829..653adfa 100755
--- a/setup.py
+++ b/setup.py
@@ -131,6 +131,14 @@ def get_data_files(name, version, fullname):
# Ubuntu15.04+ uses systemd
set_systemd_files(data_files,
src=["init/ubuntu/walinuxagent.service"])
+ elif name == 'debian':
+ set_bin_files(data_files)
+ set_conf_files(data_files, src=["config/debian/waagent.conf"])
+ set_logrotate_files(data_files)
+ set_udev_files(data_files)
+ set_systemd_files(data_files,
+ src=["init/debian/walinuxagent.service"])
+
elif name == 'suse':
set_bin_files(data_files)
set_conf_files(data_files, src=["config/suse/waagent.conf"])