Commit Graph

89 Commits (master)

Author SHA1 Message Date
Marcus ca3cc077d6
Merge pull request #35 from m4rcu5nl/develop
Release v1.2.3
2020-03-13 01:35:01 +01:00
Marcus 904dcb399d Merge branch 'feature/gpg_fingerprint_variable' into develop 2020-03-09 23:19:28 +01:00
Marcus 0b9f100aa5 Use variable for gpg fingerprint
Using the fingerprint in the rpm_key module requires Ansible 2.9. Updated meta file to reflect this requirement.
2020-03-09 02:44:38 +01:00
Marcus 90167ae771
Merge pull request #30 from ClashTheBunny/pgp_key_id
Add PGP key `id` for added security
2020-03-09 02:33:09 +01:00
Marcus a84ea36b37
Merge pull request #31 from quivalen/set_fact.sh-patch-1
Update set_fact.sh to support multiple network
2020-03-09 02:28:44 +01:00
Marcus dc68166c27
Merge pull request #32 from dsteinkopf/master
fix usage of register variable function
2020-03-09 02:16:00 +01:00
Dirk Steinkopf c9339c1f3b fix usage of register variable function 2019-11-16 18:23:45 +01:00
Andrea Lora 0755fa30b2
Update set_fact.sh to support multiple network
Currently the role will fail to regather fact if $network_count > 1

That's because without the quotes echo will suppress the \n writing everything in one line. Thus wc -l will return `1`, confusing the file_content function that will lead to an incorrect json being produced
2019-07-08 11:40:05 +01:00
Randall Mason 76b57fb097 Add PGP key `id` for added security 2019-06-09 12:50:53 -05:00
Marcus 49d61b875e
Merge pull request #29 from papanito/papanito/correct-readme
Papanito/correct readme
2019-04-21 04:04:09 +02:00
papanito ffba32f382 Fix some minor typos in text 2019-04-20 20:59:35 +02:00
papanito 2b56aaf46c Correct typo in example playbook 2019-04-20 20:53:09 +02:00
Marcus Meurs 154899586e Use the same fact syntax throughout the role
Create consistency by using the ansible_facts['somefact'] syntax everywhere.
2018-12-10 23:47:16 +01:00
Marcus Meurs c7aae63e16 Merge branch 'hotfix/v1.2.2' 2018-12-08 02:26:57 +01:00
Marcus Meurs a9fa164ebe Merge branch 'hotfix/v1.2.2' into develop 2018-12-08 02:26:57 +01:00
Marcus Meurs 5431276c8e Missed a pretty important comma 2018-12-08 02:25:12 +01:00
Marcus Meurs 88b61fdcea Merge branch 'release/v1.2.1' 2018-12-07 23:48:31 +01:00
Marcus Meurs a0228786d3 Merge branch 'release/v1.2.1' into develop 2018-12-07 23:48:30 +01:00
Marcus Meurs fd555f86ac Update Galaxy meta and readme
Readme mostly formatting changes. Meta file now includes supported Ubuntu releases.
2018-12-07 23:44:16 +01:00
Marcus Meurs 95d9213746 Adds network device to ansible_local.zerotier
Also removes the conditional for skipping installation based on ansible_local.zerotier value. Skipping tasks like that should be up to the user, not the role.
2018-12-07 23:40:48 +01:00
Marcus Meurs b86bc4c73d Rearrange conditionals
release_repo.status needs to be checked after distribution.
2018-12-07 23:35:32 +01:00
Marcus Meurs fd68894bad Possible fix for #26
If ansible_distribution is Ubuntu the role will check if there is a dedicated repo matching the ansible_distribution_release. If this is not the case but the ansible_distribution_major_version is 18, the repo for the bionic release will be used.
2018-12-06 05:35:32 +01:00
Marcus Meurs 4dac8000fc Variable naming convention
Updated 2 variable names to follow naming convention. For backwards compatibility the old names are rewritten to the new ones in the role's defaults.
2018-12-04 05:00:38 +01:00
Marcus Meurs 618ae55bd7 Merge branch 'feature/persistent_custom_facts' into develop 2018-12-04 02:50:01 +01:00
Marcus Meurs 046415b168 Fix for loop generating invalid json 2018-12-04 02:48:29 +01:00
Marcus Meurs 672c67e087 Reduce unnecessary API calls
The role will no longer make API calls to authorize already authorized members to a network.
2018-12-04 01:34:39 +01:00
Marcus Meurs c03c2b5a3f Set custom facts persistently
Create /etc/ansible/facts.d/zerotier.fact on each node containing custom facts in json format. This can then be used to prevent pointless reconfiguration of existing nodes whenever a new one is added to the inventory. In this commit it merely skips the installation tasks.
2018-12-03 07:05:37 +01:00
Marcus b5cca4baa5
Merge pull request #25 from m4rcu5nl/develop
Release 1.2.0
2018-12-02 18:58:49 +01:00
Marcus Meurs bd95d5ba84 Update to include #23 2018-12-01 08:20:09 +01:00
Marcus Meurs 71dfa9656e Fixed Ansible Galaxy warnings
Also added a license. Went for GPLv3 since it's the license used for the Ansible project itself.
2018-12-01 06:42:33 +01:00
Marcus Meurs f3c9d6d2d0 Drop privilege at block level
Apparently `local_action` and `delegate_to` handle `become: false` differently. The later ignored it when it was done at task level.
2018-12-01 05:56:20 +01:00
Marcus 6118217734
Merge pull request #23 from G10h4ck/auth_delegation
Make authentication delegation configurable
2018-10-15 19:04:18 +02:00
Marcus 322a098af0
Merge pull request #22 from PercyJax/patch-1
Update package manager cache before install
2018-10-15 18:55:59 +02:00
Gio d2c2e6494c
Make authentication delegation configurable
Before this commit the authentication task was runned as a local_action
so if the zerotier controller was on a different machine that the
ansible controller, the zerotier controller API had to bind to 0.0.0.0
instead of 127.0.0.1 with the security implication this burden this
imply (setup HTTPS, setup firewall and so on).
With this commit this behaviour is now configurable with zerotier_api_delegate
variable, by default that variable is set to localhost so it behave
exactly as before this commit, but if set the action is run on the
preferred machine, in my case the zerotier network controller is part of
the same playbook so I set
    zerotier_api_delegate: zerotierNetworkControllerMachineName
    zerotier_api_url: http://127.0.0.1:9993/
So I can benefit from this ansible role without the burden of setting up
global listening + HTTPS etc...
2018-10-15 18:08:01 +02:00
PercyJax e04ba73642
Update package manager cache before install
As it currently stands, after the repo is added, apt-get update (or equivalent) is not performed, and zerotier-one install fails.
2018-09-25 13:44:55 -04:00
Marcus 89c5635b5d
Merge pull request #21 from m4rcu5nl/develop
Fixing import error
2018-07-26 00:23:23 +02:00
Marcus Meurs 2a0250b71d Remove company field
It caused an error during galaxy import
2018-07-26 00:18:29 +02:00
Marcus Meurs 2be4c83c55 Merge remote-tracking branch 'origin/develop' into develop 2018-07-26 00:17:21 +02:00
Marcus Meurs 378140b1c4 Update meta file
Added Fedora 28 support
2018-07-26 00:17:01 +02:00
Marcus Meurs 40848fb0ff Merge remote-tracking branch 'origin/develop' into develop 2018-07-26 00:16:45 +02:00
Marcus 8a8db43397
Merge pull request #20 from m4rcu5nl/develop
Version 1.1.0
2018-07-26 00:01:52 +02:00
Marcus Meurs 1dea8eb5ab Update meta file
Added Fedora 28 support
2018-07-25 23:46:15 +02:00
Marcus d089ef4aaf
Merge pull request #19 from zhaofengli/master
Add Arch Linux support
2018-07-25 23:42:01 +02:00
Marcus Meurs c6f5836dc7 Merge branch 'feature/api_workaround' into develop 2018-07-25 23:21:20 +02:00
Marcus Meurs 3de2e738d4 2 separate API calls
- authorize member
- configure member

This is a workaround for the issue described in #17
2018-07-25 23:19:47 +02:00
Zhaofeng Li 10fd2fd498 Add Arch Linux support 2018-07-25 23:03:35 +08:00
Marcus 1a235172aa
Merge pull request #18 from etcet/add-fedora-repo
Add repo for Fedora
2018-05-14 00:04:29 +02:00
Chris 33c53916c0 Add repo for Fedora 2018-05-10 12:55:33 -05:00
Marcus Meurs 54f3f0bcc0 Merge branch 'feature/improve_performance' into develop 2018-04-09 05:36:28 +02:00
Marcus Meurs 4146b7a257 Option to skip installation
Give the user an option to skip the installation tasks. There's no real need to download the pgp key and packages again when all you want to do is reconfigure existing members.
2018-04-09 04:30:56 +02:00