foreman_ansible 14.1.0 → 14.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/ansible_roles/index.html.erb +1 -1
- data/app/views/ansible_roles/welcome.html.erb +1 -1
- data/app/views/ansible_variables/_fields.erb +1 -1
- data/app/views/ansible_variables/index.html.erb +1 -2
- data/app/views/foreman_ansible/job_templates/download_and_execute_script.erb +28 -0
- data/lib/foreman_ansible/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5375afa0e07f27e4bf389fd4e2b8b2e3ca51380b206f797e73d6ddb8b39e0b1a
|
4
|
+
data.tar.gz: 7e1ddc1807fd71fd95fe5ee2cc9678a3f72ccf3d87c3b4ea7e180fcc762eae71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65019637bad7d515cc4876c0a93e165b047c8252774d53ca7beba7e89f8723948f06192b1418591ea4af5fd9fd6b58f6c0f9eb2988d64226d37d2053c44cf541
|
7
|
+
data.tar.gz: a00de2265aaee7fdf823b9491e98443e4a765e593a306e81e337a9a56916dbc335e1da9898238ccba766eb08c4e27b2ed32694081203767c0a667333a1708fa5
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% title _("Ansible Roles") %>
|
2
2
|
|
3
3
|
<% title_actions ansible_proxy_import(hash_for_import_ansible_roles_path),
|
4
|
-
documentation_button('
|
4
|
+
documentation_button('Managing_Configurations_Ansible', type: 'docs', chapter: 'Importing_Ansible_Roles_and_Variables_ansible') %>
|
5
5
|
|
6
6
|
<table class="<%= table_css_classes 'table-fixed' %>">
|
7
7
|
<thead>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<p><%= _('No Ansible Roles were found in Foreman. If you want to assign roles to your hosts,
|
8
8
|
you have to import them first.').html_safe %>
|
9
9
|
</p>
|
10
|
-
<p><%= link_to(_('Learn more about this in the documentation.'), documentation_url('
|
10
|
+
<p><%= link_to(_('Learn more about this in the documentation.'), documentation_url('Managing_Configurations_Ansible', type: 'docs', chapter: 'Importing_Ansible_Roles_and_Variables_ansible'), target: '_blank') %></p>
|
11
11
|
<div class="blank-slate-pf-secondary-action">
|
12
12
|
<%= ansible_proxy_import(hash_for_import_ansible_roles_path) %>
|
13
13
|
</div>
|
@@ -65,7 +65,7 @@
|
|
65
65
|
</fieldset>
|
66
66
|
</br>
|
67
67
|
<fieldset>
|
68
|
-
<h2><%= _("Specify Matchers") %> <%= documentation_button('
|
68
|
+
<h2><%= _("Specify Matchers") %> <%= documentation_button('Managing_Configurations_Ansible', type: 'docs', chapter: 'Overriding_Ansible_Variables_in_foreman_ansible') %></h2>
|
69
69
|
<div class="children_fields lookup_values">
|
70
70
|
<%= render 'lookup_keys/values', :f => f, :is_param => false %>
|
71
71
|
</div>
|
@@ -2,8 +2,7 @@
|
|
2
2
|
<%= stylesheet 'foreman_ansible/foreman-ansible' %>
|
3
3
|
|
4
4
|
<%= title_actions display_link_if_authorized(_('New Ansible Variable'), hash_for_new_ansible_variable_path, :class => "btn btn-default no-float"),
|
5
|
-
documentation_button('
|
6
|
-
%>
|
5
|
+
documentation_button('Managing_Configurations_Ansible', type: 'docs', chapter: 'Importing_Ansible_Roles_and_Variables_ansible') %>
|
7
6
|
|
8
7
|
<table class="<%= table_css_classes 'table-fixed' %>">
|
9
8
|
<thead>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<%#
|
2
|
+
name: Download and execute a script
|
3
|
+
job_category: Ansible Commands
|
4
|
+
description_format: Download script from %{url} and execute it
|
5
|
+
snippet: false
|
6
|
+
template_inputs:
|
7
|
+
- name: url
|
8
|
+
required: true
|
9
|
+
input_type: user
|
10
|
+
description: "URL of the script to download e.g: http://example.com/unattended/anonymous/my_script"
|
11
|
+
advanced: false
|
12
|
+
provider_type: Ansible
|
13
|
+
kind: job_template
|
14
|
+
model: JobTemplate
|
15
|
+
%>
|
16
|
+
|
17
|
+
---
|
18
|
+
- hosts: all
|
19
|
+
tasks:
|
20
|
+
- uri:
|
21
|
+
url: <%= input("url") %>
|
22
|
+
return_content: true
|
23
|
+
register: script_response
|
24
|
+
- shell:
|
25
|
+
cmd: |
|
26
|
+
{{script_response.content}}
|
27
|
+
register: out
|
28
|
+
- debug: var=out
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_ansible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.
|
4
|
+
version: 14.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Lobato Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: acts_as_list
|
@@ -219,6 +219,7 @@ files:
|
|
219
219
|
- app/views/foreman_ansible/job_templates/ansible_windows_updates.erb
|
220
220
|
- app/views/foreman_ansible/job_templates/capsule_upgrade_-_ansible_default.erb
|
221
221
|
- app/views/foreman_ansible/job_templates/convert_to_rhel.erb
|
222
|
+
- app/views/foreman_ansible/job_templates/download_and_execute_script.erb
|
222
223
|
- app/views/foreman_ansible/job_templates/module_action_-_ansible_default.erb
|
223
224
|
- app/views/foreman_ansible/job_templates/package_action_-_ansible_default.erb
|
224
225
|
- app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
|