-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from tribe29/devel
Minor refactoring and fixes
- Loading branch information
Showing
17 changed files
with
199 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.vagrant | ||
.*.swp | ||
.*.swo | ||
*~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
# All Vagrant configuration is done below. The "2" in Vagrant.configure | ||
# configures the configuration version (we support older styles for | ||
# backwards compatibility). Please don't change it unless you know what | ||
# you're doing. | ||
Vagrant.configure("2") do |config| | ||
|
||
# Ubuntu | ||
config.vm.define "ansible-collection", primary: true do |srv| | ||
srv.vm.box = "ubuntu/focal64" | ||
srv.vm.network "private_network", ip: "IP_ADDRESS" | ||
srv.ssh.insert_key = false | ||
srv.vm.provider "virtualbox" do |v| | ||
v.name = 'ansible-collection' | ||
v.memory = 4096 | ||
v.cpus = 2 | ||
end | ||
$script = <<-SCRIPT | ||
apt-get update | ||
apt-get install -y python3-pip | ||
pip install -r /vagrant/requirements.txt | ||
ansible-galaxy collection install -f -r /vagrant/requirements.yml | ||
wget "https://download.checkmk.com/checkmk/2.0.0p23/check-mk-raw-2.0.0p23_0.focal_amd64.deb" -O /tmp/checkmk-stable.deb | ||
wget "https://download.checkmk.com/checkmk/2.1.0b5/check-mk-raw-2.1.0b5_0.focal_amd64.deb" -O /tmp/checkmk-beta.deb | ||
apt-get install -y /tmp/checkmk-stable.deb | ||
omd create --admin-password 'cmk' stable | ||
apt-get install -y /tmp/checkmk-beta.deb | ||
omd create --admin-password 'cmk' beta | ||
omd status -b stable || omd start stable | ||
omd status -b beta || omd start beta | ||
SCRIPT | ||
srv.vm.provision "shell", inline: $script | ||
# srv.vm.provision "shell" do |s| | ||
# s.path = "./setup.sh" | ||
# end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# https://docs.ansible.com/ansible/latest/community/development_process.html#changelogs-how-to | ||
minor_changes: | ||
- Improve construction of headers and base_url variables in activation module. | ||
- Clean up variable assignments in activation module. | ||
- Add hint, that running the activation module is required only once and not per host. | ||
|
||
# known_issues: | ||
# - This release is still in development and a heavy work in progress. | ||
# - Discovery module is not feature complete yet. | ||
# - Downtime module is not fully idempotent yet. This affects service downtimes and deletions. | ||
|
||
## Line Format | ||
# When writing a changelog entry, use the following format: | ||
|
||
# - scope - description starting with a lowercase letter and ending with a period at the very end. Multiple sentences are allowed (https://github.com/reference/to/an/issue or, if there is no issue, reference to a pull request itself). | ||
|
||
# The scope is usually a module or plugin name or group of modules or plugins, for example, lookup plugins. While module names can (and should) be mentioned directly (foo_module), plugin names should always be followed by the type (foo inventory plugin). | ||
|
||
# For changes that are not really scoped (for example, which affect a whole collection), use the following format: | ||
|
||
# - Description starting with an uppercase letter and ending with a dot at the very end. Multiple sentences are allowed (https://github.com/reference/to/an/issue or, if there is no issue, reference to a pull request itself). | ||
|
||
|
||
## Possible keys: | ||
|
||
# breaking_changes | ||
|
||
# Changes that break existing playbooks or roles. This includes any change to existing behavior that forces users to update tasks. Displayed in both the changelogs and the Porting Guides. | ||
# major_changes | ||
|
||
# Major changes to Ansible itself. Generally does not include module or plugin changes. Displayed in both the changelogs and the Porting Guides. | ||
# minor_changes | ||
|
||
# Minor changes to Ansible, modules, or plugins. This includes new features, new parameters added to modules, or behavior changes to existing parameters. | ||
# deprecated_features | ||
|
||
# Features that have been deprecated and are scheduled for removal in a future release. Displayed in both the changelogs and the Porting Guides. | ||
# removed_features | ||
|
||
# Features that were previously deprecated and are now removed. Displayed in both the changelogs and the Porting Guides. | ||
# security_fixes | ||
|
||
# Fixes that address CVEs or resolve security concerns. Include links to CVE information. | ||
# bugfixes | ||
|
||
# Fixes that resolve issues. | ||
# known_issues | ||
|
||
# Known issues that are currently not fixed or will not be fixed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# https://docs.ansible.com/ansible/latest/community/development_process.html#changelogs-how-to | ||
minor_changes: | ||
- Improve construction of headers and base_url variables in discovery module. | ||
- Clean up variable assignments in discovery module. | ||
- Introduce quick fix for handling of HTTP 500 errors in discovery module. | ||
|
||
# known_issues: | ||
# - This release is still in development and a heavy work in progress. | ||
# - Discovery module is not feature complete yet. | ||
# - Downtime module is not fully idempotent yet. This affects service downtimes and deletions. | ||
|
||
## Line Format | ||
# When writing a changelog entry, use the following format: | ||
|
||
# - scope - description starting with a lowercase letter and ending with a period at the very end. Multiple sentences are allowed (https://github.com/reference/to/an/issue or, if there is no issue, reference to a pull request itself). | ||
|
||
# The scope is usually a module or plugin name or group of modules or plugins, for example, lookup plugins. While module names can (and should) be mentioned directly (foo_module), plugin names should always be followed by the type (foo inventory plugin). | ||
|
||
# For changes that are not really scoped (for example, which affect a whole collection), use the following format: | ||
|
||
# - Description starting with an uppercase letter and ending with a dot at the very end. Multiple sentences are allowed (https://github.com/reference/to/an/issue or, if there is no issue, reference to a pull request itself). | ||
|
||
|
||
## Possible keys: | ||
|
||
# breaking_changes | ||
|
||
# Changes that break existing playbooks or roles. This includes any change to existing behavior that forces users to update tasks. Displayed in both the changelogs and the Porting Guides. | ||
# major_changes | ||
|
||
# Major changes to Ansible itself. Generally does not include module or plugin changes. Displayed in both the changelogs and the Porting Guides. | ||
# minor_changes | ||
|
||
# Minor changes to Ansible, modules, or plugins. This includes new features, new parameters added to modules, or behavior changes to existing parameters. | ||
# deprecated_features | ||
|
||
# Features that have been deprecated and are scheduled for removal in a future release. Displayed in both the changelogs and the Porting Guides. | ||
# removed_features | ||
|
||
# Features that were previously deprecated and are now removed. Displayed in both the changelogs and the Porting Guides. | ||
# security_fixes | ||
|
||
# Fixes that address CVEs or resolve security concerns. Include links to CVE information. | ||
# bugfixes | ||
|
||
# Fixes that resolve issues. | ||
# known_issues | ||
|
||
# Known issues that are currently not fixed or will not be fixed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
--- | ||
- name: "Download Checkmk." | ||
- name: "Download Checkmk {{ checkmk_version }}." | ||
ansible.builtin.get_url: | ||
url: "{{ download_url }}" | ||
dest: /tmp/checkmk-server.deb | ||
|
||
- name: "Install Checkmk." | ||
- name: "Install Checkmk {{ checkmk_version }}." | ||
ansible.builtin.apt: | ||
deb: /tmp/checkmk-server.deb | ||
state: present | ||
|
||
- name: "Create site." | ||
- name: "Create site {{ site }}." | ||
ansible.builtin.command: "omd create --no-tmpfs --admin-password {{ automation_secret }} {{ site }}" | ||
args: | ||
creates: "/omd/sites/{{ site }}" | ||
|
||
- name: "Start site." | ||
- name: "Start site {{ site }}." | ||
ansible.builtin.shell: "omd status -b {{ site }} || omd start {{ site }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
--- | ||
- name: "Download Checkmk." | ||
- name: "Download Checkmk {{ checkmk_version }}." | ||
ansible.builtin.get_url: | ||
url: "{{ download_url }}" | ||
dest: /tmp/checkmk-server.deb | ||
|
||
- name: "Install Checkmk." | ||
- name: "Install Checkmk {{ checkmk_version }}." | ||
ansible.builtin.apt: | ||
deb: /tmp/checkmk-server.deb | ||
state: present | ||
|
||
- name: "Create site." | ||
- name: "Create site {{ site }}." | ||
ansible.builtin.command: "omd create --no-tmpfs --admin-password {{ automation_secret }} {{ site }}" | ||
args: | ||
creates: "/omd/sites/{{ site }}" | ||
|
||
- name: "Start site." | ||
- name: "Start site {{ site }}." | ||
ansible.builtin.shell: "omd status -b {{ site }} || omd start {{ site }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
--- | ||
- name: "Download Checkmk." | ||
- name: "Download Checkmk {{ checkmk_version }}." | ||
ansible.builtin.get_url: | ||
url: "{{ download_url }}" | ||
dest: /tmp/checkmk-server.deb | ||
|
||
- name: "Install Checkmk." | ||
- name: "Install Checkmk {{ checkmk_version }}." | ||
ansible.builtin.apt: | ||
deb: /tmp/checkmk-server.deb | ||
state: present | ||
|
||
- name: "Create site." | ||
- name: "Create site {{ site }}." | ||
ansible.builtin.command: "omd create --no-tmpfs --admin-password {{ automation_secret }} {{ site }}" | ||
args: | ||
creates: "/omd/sites/{{ site }}" | ||
|
||
- name: "Start site." | ||
- name: "Start site {{ site }}." | ||
ansible.builtin.shell: "omd status -b {{ site }} || omd start {{ site }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.