Commit Graph
55 Commits
Author SHA1 Message Date
Hans Krijger 5b43d26761 fix for broken setup.py (#803) 2017-07-17 14:34:23 -07:00
Robert Nesius b6f4136e67 Update setup.py for os-release change in Clear Linux OS. 2017-07-11 08:34:24 +00:00
Reyk Floeter aad62676a7 Add initial support for the OpenBSD operating system (#712)
* Add initial support for the OpenBSD operating system

There are some differences between FreeBSD, OpenBSD, and Linux.

Notes:

- OpenBSD ships LibreSSL, but WALinuxAgent needs OpenSSL for CMS, so
use the openssl port and the "eopenssl" binary instead.

- Don't run the custom DHCP client but parse /var/db/dhclient.leases.hvn0.
OpenBSD's lease file uses a modified syntax.

- OpenBSD does not have /proc.  WALinuxAgent should never assume that
the /proc filesystem is available.

- OpenBSD does not have sudo, but its replacement doas.  The OpenBSD
class implements support for modifying the doas.conf file.

- Unlike FreeBSD, OpenBSD supports and mounts UDF DVDs just fine.

- Create a swap partition instead of a swap file on the resource disk.

- Many other minor changes for OpenBSD

TODO:

- The /proc checks needs to be replaced with pgrep/ps etc. checks for
OpenBSD.  For now it just checks if /proc is available or returns
without error.
Make sure to install waagent with --register-service as setuptools
will not set the permissions of /etc/rc.d/waagent correctly (the file
has to be executable to be used by OpenBSD's rc system).

* Remove debug statement that was use to fix mount_dvd on OpenBSD.

* I accidentally replaced the FreeBSD resource disk handler.

The OpenBSD disk handler is an addition, not a replacement.

Found by jonathangray

* pylint

pylint found one bug in setting the password; other changes are just
for the style.

* strip newline from generated password hash.

Issue reported by Lili Deng.

* Keep AutoUpdate enabled, it was disabled for initial porting.

Pointed out by @hglkrijger

* Use a wildcard and delete all DHCP lease files on *BSD.

Requested by @hglkrijger
2017-05-30 15:27:22 -07:00
Hans Krijger 0a85b3effd fix setup for udev rules in ubuntu 2017-05-03 12:49:15 -07:00
enihcam ab90f075d1 Add Arch distro support (#670)
* Add Arch distro support

* Added archDistro in waagent2.0

* Added missing dependency for archDistro

* Revert "Added missing dependency for archDistro"

This reverts commit 259cc020c42ec575dbe11c3057002d03e90353a4.

* Revert "Added archDistro in waagent2.0"

This reverts commit dc51cdfcb392b3958e0bcb60b3144226f07d3723.

* Enable waagent AutoUpdate for archlinux.
2017-04-18 12:02:01 -07:00
William Douglas d4a3226142 Add Clear Linux distro support 2016-10-26 21:12:05 +00:00
Hans Krijger 85f0eae3df restart service on registration (#406) 2016-09-07 08:33:09 -07:00
Hans Krijger 1f62845c5c update setup.py to start service on register-service 2016-08-30 15:04:38 -07:00
Hans Krijger 0d52fc57a1 clean up formatting (#373) 2016-08-18 10:36:39 -07:00
Hans Krijger b7f79a051b revive #193, which fixes #177 (#371) 2016-08-18 10:35:55 -07:00
Brendan Dixon a7364c801b Added package building script
Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-07-08 08:58:42 -07:00
Stephen A. Zarkos d2b7e69314 Fix RPM install (#243)
* Update setup.py to add udev files

* Rename systemd service to waagent.service

- Keep waagent.service for consistency
- Use /usr/bin/python as default instead of /usr/bin/python3
2016-06-17 14:56:44 -07:00
Yue Zhang da9ebe0a3d Separate provision agent and guest agent
Ensured correct return
Temporarily disable autoupdate

Signed-off-by: Brendan Dixon <brendand@microsoft.com>
2016-06-01 15:27:32 -07:00
brendandixon e55d8dee0e Revert "Separate provision agent and guest agent" 2016-05-31 11:24:23 -07:00
Yue Zhang efff9d6e0e Separate provision agent and guest agent 2016-05-31 11:15:10 -07:00
Dong Liu 95ea883433 Fix setup.py install for coreos. 2016-04-06 13:26:16 +08:00
Dong Liu e522afc307 Add service script for FreeBSD. 2016-02-23 09:58:56 +08:00
Dong Liu b65718d59d Add Resource Disk handler for FreeBSD. 2016-01-20 11:00:59 +08:00
Yue Zhang ece9708847 Allow overwritting existing user and add decoding customdata 2016-01-14 23:53:08 +08:00
Yue Zhang 5bfc685856 Refactor extension handler 2016-01-12 17:10:56 +08:00
Yue Zhang 27270823f2 Rename Windows Azure to Microsoft Azure 2015-10-23 14:55:05 +08:00
Yue Zhang 4fad64dd30 Fix setup.py
1. Fix systemd init script location for SUSE and centos
2. Fix sysV script for SLES11
3. Use systemctl for sles12+
4. Mitigate systemd issue on centos 7.1
2015-10-20 10:21:36 +08:00
Robert Schweikert ca1be4fd57 - Remove superfluous import 2015-10-19 18:07:38 -04:00
Yue Zhang a3612a67a6 Fix setup.py 2015-08-07 02:37:38 +08:00
Yue Zhang e11b8ebb61 Update setup.py for snappy 2015-08-06 12:36:01 +08:00
Yue Zhang 8c02b0c4c1 Support old extensions 2015-08-05 11:34:06 +08:00
Yue Zhang 46de362f28 Add service config for ubuntu pre-15.04 2015-08-02 15:29:58 +08:00
Yue Zhang c8e9704de1 Update setup.py and bin/waagent to support both python2&3 2015-08-02 06:16:55 +08:00
Yue Zhang 082bbb6ffc Support py3 2015-08-02 06:16:55 +08:00
Yue Zhang 753796ce5e Fix pylint warnings 2015-07-22 08:58:36 +08:00
Yue Zhang 52e3cb60e5 Fix pylint warnings 2015-07-22 07:55:32 +08:00
Yue Zhang 587da2e908 Add post install script 2015-06-30 17:08:43 +08:00
Yue Zhang 9f299a419f Improve log and cleanup code 2015-06-30 16:24:24 +08:00
Yue Zhang 46c6115ee3 Change to systemd for ubuntu 1504 2015-06-30 16:24:24 +08:00
Yue Zhang d95f9472f9 Change option --register-service to switch 2015-06-30 11:10:55 +08:00
Yue Zhang 8149b73f6b Add register service option to setup.py install 2015-06-30 00:32:03 +08:00
Yue Zhang 9eb1c96ccf Update setup.py for openSUSE 2015-06-29 21:10:11 +08:00
Yue Zhang 7d825961c6 Update setup.py to support bdist_rpm 2015-06-29 17:26:32 +08:00
Yue Zhang 4b69733951 Add register-service option to setup.py 2015-06-29 14:50:37 +08:00
Yue Zhang ae7697e8d3 Fix init script for centos 2015-06-27 17:49:14 +08:00
Yue Zhang 8ed9073057 Add distro loader 2015-06-24 15:49:09 +08:00
Yue Zhang f077df51ed Update setup.py 2015-06-16 15:00:24 +08:00
Yue Zhang fd76f1de09 Multiple fixes for CoreOS 2015-06-16 11:29:58 +08:00
Yue Zhang 62affd964d Fix setup.py for CoreOS 2015-06-15 13:56:32 +08:00
Yue Zhang ded43c4244 Multiple fix for centos and suse 2015-06-12 20:28:17 +08:00
Yue Zhang 8712c2f65d Update setup.py 2015-06-04 14:38:09 +08:00
Yue Zhang 9eae66564f Rename directory 2015-03-24 14:03:04 +08:00
Yue Zhang 3ba0e7a172 Fix update config file 2014-11-24 11:48:24 +08:00
Yue Zhang 5d5f3485be Add support for other distro for setup.py 2014-11-24 10:21:35 +08:00
Yue Zhang 9d7dd18b48 Fix issues with provision and deprovsion on Ubuntu 2014-11-19 14:49:22 +08:00