Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/vyos/vyos-cloud-init


https://github.com/vyos/vyos-cloud-init

Ensure that for config drive that

we map 'hostname' to 'local-hostname'
so that the modules work correctly with
the cfgdrive style ...

ab1b27294ce852a5d67b230971a1c28c99940e50 authored over 12 years ago
For the cloud-init rc.d ensure that the

cloud-init-local mode is attempted as
a hard requirement (instead of the
previous soft requirem...

d65ed7106072b9a882592de69ebfe36ba69d6fbc authored over 12 years ago
Minor OpenNebula's documentation tuning.

a9939fe768e04d52fe530c7467357d79b78a21f4 authored over 12 years ago
Add documentation for OpenNebula datasource.

8a8f6095586c6c6d49df09e09f513b2408714282 authored over 12 years ago
Delete hyphen.

0e7ce376fdb84345c97f936f5ccb1fee964a4c03 authored over 12 years ago
Delete old ConfigDrive's code.

1567b1bc3b2948aa80e0b150d34542e2ff02428f authored over 12 years ago
fix tools/make-dist-tarball

df00a64c662a916fab18602a294a0443545a1990 authored over 12 years ago
fix oauth time skew. actual implementation was returning 401 not 403.

This fixes (tested) bug 978127. The server was actually returning a 401
not a 403. As such, th...

f8b23b39bdf8753986df9ecf5948ffd8e8fdee74 authored over 12 years ago
Ensure that the include dir starts the line

and is not a part of a comment or other
part of the line.

e2b85e2087b796c7a130ee20f688dbd5d161739f authored over 12 years ago
rework the rest of the users of old single 'user' to support lists

Rework the rest of the locations that used the previous 'user' and make
those locations go throu...

497972223afd5193a40e3e9c4e69ce31319a1ebc authored over 12 years ago
[pylint]: remove unused import

a28d7fe46cf8e3277a13c35c5dd0185f65ab1d0c authored over 12 years ago
Update the log statement used here to be

a little more relevant.

9a252b3a41ad757587cba729b31079c04b253faa authored over 12 years ago
Dir should be 0755, not 0440

9e7320df7a6fb6f1e9a5401735c471467b1fe365 authored over 12 years ago
Ensure that the directory where the sudoers

file is being added actually exists before it
is written into and ensure that the directory
is in...

f255d068c5d4251762b83467d1927ab72da57482 authored over 12 years ago
Sync with head and fix conflicts.

72fc1f762e5c5df563380e9ed90bfaba131e811b authored over 12 years ago
Make byobu more tolerant of the user not being

located and warn when it is not found + only
run the shell command when actual contents
exist to ...

5233b6edb70702476463b47c06cb02b3c7f74c51 authored over 12 years ago
Add a comment as to why distros can't be

imported without being renamed due to
previous usage of the attribute 'distros'

7ab25c779433a614a6e4101ddfe852fc25f39c01 authored over 12 years ago
make DataSourceMAAS 'main()' use load_yaml

d285a0463b6d16487eb5859373ccfd27eaec8b90 authored over 12 years ago
Rework the rest of the locations that used

the previous 'user' and make those locations
go through the new distros functions to select
the d...

cf3dd1ba86d4ddde149f451e026c697c07b4d732 authored over 12 years ago
fix pep8 and pylint

f1e3ae3c49b9424a7e3cdbf835651720cc60e143 authored over 12 years ago
add 'safeyaml' to cloudinit

In 0.7.0 we started using yaml.safe_load to load data rather than
yaml.load. Some producers (na...

a7a9de1a079a70f5c8290ab5158661d3a33e5552 authored over 12 years ago
rpm spec and rpm build, better handle case with no package_mirrors

92cbc3ae78b560cd6e81f2894d743b72b744eee1 authored over 12 years ago
Also ensure that if mirror info is not invalid

before we start iterating over it (it could
be sent is as none).

46be69003044a7d60d9566dbddd1b7fd93054c8f authored over 12 years ago
Stop the bad habit of using 'or'.

332ef83d77853714b88358de301bda30e82aaf62 authored over 12 years ago
restart salt-minion instead of start.

Packages on debian/ubuntu should start on installation. As a result, if we
want to get config c...

dfa62e70bd9942fd3c82d77217d48615a78bbcfc authored over 12 years ago
cleanup the user/group lists

The primary utility here is normalize_user_groups, which would
be called by config modules to ge...

ec910564e00498f5c545a227bee56eb25233e270 authored over 12 years ago
Add a nice '-p1'

68114a57d776585865056ad5fb71d41bb741cd06 authored over 12 years ago
Ensure the patches get activated.

179f48250952501c8ad36ac0ed6389159a25bf82 authored over 12 years ago
Adjust comment.

b541f738616349a028c5e54754ea83e439d82734 authored over 12 years ago
Fixup some pylint warnings.

4a5d5a044db9e77b931fb4df93f7c01b02021f44 authored over 12 years ago
Add a new example test that will patch utils and os

functions so that they can be 'retargeted' to a temporary
directory, which allows us the ability ...

f31a4e80aaaafca79eb6c808c81a6067f0c493b8 authored over 12 years ago
Clean doesn't seem needed.

c62675900a96dd645a1ff2ee0c316ef9232f443d authored over 12 years ago
Add a top_dir define.

018ec6faa0a9d0c8aa584bae2e0798ed7e3e021a authored over 12 years ago
add tests for netcfg code

317f442445fc40a666e9566e1f2739324cc99a2e authored over 12 years ago
Fix tests after resync with head.

94ff94e299257d22c0f45f980ce1a24b569b0b61 authored over 12 years ago
Resync with head.

9a9e74076b474ceb1d0bc21c77d1ab4dec2acaf7 authored over 12 years ago
Fix cheetah syntax error.

ca9251d74a18b47abacff2b63328061b9e484246 authored over 12 years ago
Allow package_mirrors to be non-existent.

cdba22dd0fc249124dfb4e578f44898ba044925a authored over 12 years ago
Fix syntax error.

f74c738fa76db65e45d2bdb19257fe0a78dcd0e0 authored over 12 years ago
Add the ability to pass patches to the

rpm builder utility.

4e36bf2225d2b6e7a7ac1821e1d00ac72abb5856 authored over 12 years ago
Adjust the fingerprints to use this new

user normalization function instead of
the previous 'user' extraction.

56d0585fd7d9804b82a1eb22faff8a6554b100b8 authored over 12 years ago
Avoid rechecking if old users is availabile.

12495e3e597541ad411a656c980b9e405c2a902d authored over 12 years ago
Handle the case where 'user' is defined but 'users' isn't.

a2c6279d303a3b85625404653c7ab8081281ee18 authored over 12 years ago
Fix pylint issues created.

a092e6e2eaa5dc848d71f16671c61fa6014ce0b2 authored over 12 years ago
Add a netconfig format test + if rhel is passed the 'all'

device name, throw an error since rhel can not currently
handle this case.

df80168450faa013ce50893e3c62979829b1fea8 authored over 12 years ago
Update to bring inline with trunk/head.

90b6cfd005f5af90991fe93e5a08c8a8849e2a6d authored over 12 years ago
Refactor the ug normalization to take in a distro

and produce a user and group list. Clean this up to
be simpler as well as handle the old 'user' c...

0be941f74f54ecafcb628451f531b90f30723fbc authored over 12 years ago
cleanups for rhel network config

Rework the rhel sysconfig writing/updating so that it goes through a
single function which helps...

67e7d9c0280c3204cf503113d9dca769399eefc9 authored over 12 years ago
fix pep8

58be2ec4a3a3213700905f6bd3e6752775369471 authored over 12 years ago
Oopies, missed u.

c780ad5898f54741037ad66c28c3423aa0495fba authored over 12 years ago
Bring up to date with trunk.

ebd83a036cd94d856c2cd100202c6fb4ca287ce1 authored over 12 years ago
handle ifup on RH distros by iterating over 'ifup devname'

Fix the ifup so that if a list of devices is provided then each interface is
brought up individu...

314530b519814af4b19b4f7cbcb9a35a6cd68e2d authored over 12 years ago
DataSourceMAAS: if a oauth request fails due to 403 try updating local time

In the event of a 403 (Unauthorized) in oauth, try set a 'oauth_clockskew'
variable. In future ...

70cc7536f45a8d7052617ad88e2816291db0a309 authored over 12 years ago
fix pylint

e3b29659672acd757122bc5f90a13670b96b6952 authored over 12 years ago
fix make pep8

cde52cc8449d82d5bdce2fbb73516bee144e293c authored over 12 years ago
write-ssh-key-fingerprints: do not send HOST KEYS through logger

In the previous commit to htis file I had wrapped the writing of
'BEGIN SSH HOST KEY KEYS' to go...

ad22d407085009dcd1c860185e29f21858cdd968 authored over 12 years ago
do not create 'sems' directory. 'sem' is proper instance/ path

54e11417c93b646746a704a5ea85b47c3831fed4 authored over 12 years ago
send stderr from write-ssh-key-fingerprints to stdout

This changes all output write-ssh-key-fingerprints to go to its
stdout by redirecting stderr to ...

0a4f91c84c096e0b0df2e5a1d42c38609ae7fa93 authored over 12 years ago
fix permissions on /etc/sudoers.d file to be 0440 not 0644

sudo complains about the permissions on the sudoers config file that cloud-init
writes:

[ec2-us...

6c8b9dbae8beb4cb5ebab009b51f01f67114706f authored over 12 years ago
Process userdata, ignored by mistake.

9eaafc7379e0c6ded70a851a703a5bc5c7e56e42 authored over 12 years ago
Make the normalization a module level function

since it has little dependence on the distros
class itself. Readjust the using code to use
this n...

1278285241d017affa2d03f8023afaf2d35a9543 authored over 12 years ago
Use 0440 permissions on sudoers, not 0644

d852495da6ae8eefee0ff7d2de14c398c0a87a51 authored over 12 years ago
Don't forget the etc/hosts test.

6e0f6f3db662751c2b0bf837f2affe51b1f328a3 authored over 12 years ago
Add in another helper that can understand the

'etc/hosts' format and add in a unit test to
make sure that format can be correctly handled
and a...

4b159cdb12d1ceb3ed7a7a2b044182890618889f authored over 12 years ago
Fix some docs + pylint warnings + log on default created in the module.

009faa0546ffbcadbbcaa9692d6842890e6f2e10 authored over 12 years ago
Also allow the user list to come in as a comma

separated list so that its types match more of
what the group list can be.

47d9df78264625207342e668a9120fa84b6ad355 authored over 12 years ago
Actually commit the test for user/group data

normalization instead of forgetting about it.

712d019cba5afb535033e8228ad365071661ceb2 authored over 12 years ago
1. Cleanup the user creation so that the distro class is

responsible only for creating users and groups and
normalizing a input configuration into a norma...

62631d30aae55a42b77d326af75d5e476d4baf36 authored over 12 years ago
Use only util methods for reading/loading/appending/peeking

at files since it is likely soon that we will add a new
way of adjusting the root of files read, ...

e8a10a41d22876d555084def823817337d9c2a80 authored over 12 years ago
Remove the need to have 'default_user' and

'default_user_groups' groups be hard coded
into the distro class, instead let that set
of configu...

0049b6e7bc7f52fd442f1b8902294ca8c379df5c authored over 12 years ago
Instead of special casing the empty list

we are going to check for the 'all' entry
and if that exists then only fire off one
call (since d...

e055c795581c2846aa6ae128de8cfd0b2c5d3f32 authored over 12 years ago
Pylint cleanups.

d27690ebe160bf3eae8dc92f7364daef5cf56208 authored over 12 years ago
Add a resolv.conf parser that can be easily

used for adjusting a resolv.conf formatted
file and use this to adjust the resolv.conf
in the red...

4b910d7bca47cb4fd26394fb4d14ebc72b1a73f8 authored over 12 years ago
Configurable dsmode. Resolve IPv4 hostname only with dsmode=net.

ea42bf67999c1ef61fa46ab805b0093b95dc575f authored over 12 years ago
Initialize toks variable. Fix EC2-like hostname generation based on IPv4.

17ac62b5d4d0cb3f25f431ff85411a7cca860d12 authored over 12 years ago
Use a common header creation function

to avoid duplicating the same code in
this file.

f59369d1bb0eac874dcd2fa91abfad9186b22810 authored over 12 years ago
Rework the rhel sysconfig writing/updating

so that it goes through a single function
which helps ensure correctness. Also write
to /etc/sysc...

355b0e372aec58360d4fb728088edefec27f86a1 authored over 12 years ago
Fix the ifup so that if a list of devices is provided

then each interface is brought up individually instead
of using the '--all' which isn't on rhel. ...

6208fe41e4e73d1f14fd4afc152565c8908684a2 authored over 12 years ago
if a logged message fails, fallback to logging to stdout

This most commonly occurs if a user-data script does '/sbin/poweroff'
where syslog was being use...

94b9647e4df742982cac8a2c2925fb4894281dbf authored over 12 years ago
doc: document 'tags' as comma delimited strings

LP: #1042764

3912209cdb075b7af8f87c1e41170fd8614ca520 authored over 12 years ago
First thing that we do after we can start importing

is to patch the functionality before it gets reimported.

5eef154928c75499c545c8c242bcf11d9ccf70d1 authored over 12 years ago
Get the fallback working.

d4ca178d801983bcb43bafd18084c144b74a4c9a authored over 12 years ago
add general signal handlers

A cloud-init job (user-data) might invoke /sbin/reboot or in some other
way end up killing cloud...

89f54bba6a7cc2b1d0d4b04dd1caf477bee72ea2 authored over 12 years ago
do not disable logging on signal

I had previously asked for this, but we're hoping to handle it in a
more generic way. Just beca...

cef4e846797ed7aee29e18b00810887c67591abc authored over 12 years ago
remove unit test.

the unit test required access to /dev/console due to the logging.

24d2457c2eab89f135e2b483f05d52eee0169af7 authored over 12 years ago
change exit messages to include signal name

a637b5f74948324173219a2e7817c7f19d864281 authored over 12 years ago
Adding a dual fallback log handler that

will be monkey patched in to replace the
base handler. That patching isn't quite
there yet but WIP.

f9926d88d6396b2432ed3f9333aedfa44a670ff1 authored over 12 years ago
fix 'update_package_sources' on rhel to only update package sources

update_package_sources on RHEL called "yum update", which actually
upgrades packages on the syst...

a2508f662245ab38a5200188e54e228005d56bba authored over 12 years ago
Add the translation from the ubuntu format for nameservers and dns search

servers and add in the writing of /etc/resolv.conf in rhel from that
translation.

b15088c1fd1e0199a86ed3af0f0415f604074609 authored over 12 years ago
do not write a comment in /etc/hostname.

Network Manager (LP: #1053048), and apparently fedora/redhat do not like
comments in this file.
...

b2be60ef19ffa95546dd64ea91913c8fe0096719 authored over 12 years ago
Actually download yum metadata with update_package_sources

49f5833d03b41663ccd705521136718f6230eb4b authored over 12 years ago
write trailing newlines on generated files

This adds trailing newlines to /etc/default/locale, /etc/hostname,
/etc/timezone.

91f1fc58e134fea2ac3ff04301bb0ea51f8797b1 authored over 12 years ago
Add support for 'selinux_user' key to useradd cloud-config syntax

Fedora and RHEL and friends' useradd program supports an "--selinux-user"
option that sets what ...

9c0cffeabfcc7ddfa5fdac2d22d91e336c538376 authored over 12 years ago
Use and resolve PUBLIC_IP from context disk if no HOSTNAME is specified.

0659e75ee2a2c25c113e8e652a3366433e76eff0 authored over 12 years ago
Optionally resolve IPv4 hostname.

34bebd8569e9319b791802f4fd551537967aec69 authored over 12 years ago
fix incorrect ubuntu mirror locations for 'ports'

62450b525e217b792dcf702fb2bd79d41bee17b7 authored over 12 years ago
Fix ports.ubuntu.com mirror locations

8be10579588d4b2ebb425fa58f01856947c8d3c9 authored over 12 years ago
Make update_package_sources stop upgrading packages on RHEL

a32af38b525e4bb7a1d8317e136073d7a9323f3e authored over 12 years ago
Add support for useradd --selinux-user''

11db1e91ddc047728b0161eb1da30e54084ae5eb authored over 12 years ago
Fill in basic info for the Fedora distro

c558334c6564341f97ad024f2687044534efc17f authored over 12 years ago