foreman_azure_rm 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04afcc03f8710a4e02d4f540342ff9e1ec9188fc8c83734065eecc6956327341
4
- data.tar.gz: 20b3d6cbfd6346270fb9fe335ae0ebde9181751ffd61b6c4bb98868cacf82ab4
3
+ metadata.gz: 56702d3d39f9bc9753e04e4681b4607d073cc913c1625835dda252a8a575cb6a
4
+ data.tar.gz: 59999cc6458945958f13933a0a9c1b08b63d8ddad0cb6ece337b86e367948190
5
5
  SHA512:
6
- metadata.gz: c6dc0580218a0bb8e37c734a669931d1fd6c02d37170b77d50a11afdaaee0c7675ee0cb3897eb8c05aa7e8d58af519a8e1b3e09521b6e1344a78cda1f5e3f456
7
- data.tar.gz: 2aea8c30cc2c29bea406c17471bffbf029311616137e964564e236d1b8caee737f8afc644c5b6e52969f4a0eaff59d420bf4a0de7159229b424475e5797da6ba
6
+ metadata.gz: beb3b60d5c7790ff3063c67634d749fa5ca13148bde4197e40f0d5014ec3bdab94956688b5a6de21fa13ee40e0edf76bccd7ce2fa6e1ebcd6be7fafb9f79057a
7
+ data.tar.gz: c4e0e9857dfe71bc31d09275c012ed263dde09e25d98ea5d32c75a8be812f8a325a0d5f2e9880f6a84109c9f8a6f2ff3ee5db0e1079b969c27102cd84fc2d54e
data/README.md CHANGED
@@ -4,7 +4,6 @@
4
4
  ```foreman_azure_rm``` adds [Microsoft Azure Resource Manager](http://azure.com/) as a compute resource for The Foreman
5
5
 
6
6
  * Website: [TheForeman.org](http://theforeman.org)
7
- * ForemanAzureRm: [Plugin manual](https://theforeman.org/plugins/foreman_azure)
8
7
  * Support: [Foreman support](http://theforeman.org/support.html)
9
8
 
10
9
  ## Installation
@@ -13,25 +12,25 @@
13
12
 
14
13
  Add the following to bundler.d/Gemfile.local.rb in your Foreman installation directory (/usr/share/foreman by default)
15
14
 
16
- ```console
15
+ ```bash
17
16
  $ gem 'foreman_azure_rm'
18
17
  ```
19
18
 
20
19
  Or simply:
21
20
 
22
- ```console
21
+ ```bash
23
22
  $ echo "gem 'foreman_azure_rm'" > /usr/share/foreman/bundler.d/Gemfile.local.rb
24
23
  ```
25
24
 
26
25
  Then run `bundle install` from the same directory
27
26
 
28
27
  ### Package
29
- ```console
28
+ ```
30
29
  # yum install tfm-rubygem-foreman_azure_rm
31
30
  ```
32
31
 
33
32
  ### Foreman Installer
34
- ```console
33
+ ```
35
34
  # foreman-installer --enable-foreman-plugin-azure
36
35
  ```
37
36
 
@@ -45,7 +44,7 @@ git clone https://github.com/theforeman/foreman_azure_rm.git
45
44
  Add the following to bundler.d/Gemfile.local.rb in your Foreman development directory
46
45
 
47
46
  ```ruby
48
- gem 'foreman_azure_rm', :path => 'path to foreman_azure_rm directory'
47
+ $ gem 'foreman_azure_rm', :path => 'path to foreman_azure_rm directory'
49
48
  ```
50
49
 
51
50
  Then run `bundle install` from the same directory
@@ -55,14 +54,10 @@ Then run `bundle install` from the same directory
55
54
  * VM creation
56
55
  * Provisions using Finish and User data templates from Foreman
57
56
  * Supports cloud-config provisioning
57
+ * Currently supports single NIC
58
+ * Currently supports single default OS Disk
58
59
  * Currently supports only provisioning of Linux platforms
59
60
  * Provisioning using [Public Images](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/cli-ps-findimage)
60
- * Provision using custom images
61
- * Provision using shared image galleries
62
- * Provision using RHEL byos images
63
- * Multiple NICs support
64
- * Support to add multiple data disks/volumes (standard or premium)
65
- * VM Extension with Custom Script and File URIs support
66
61
  * Static or dynamic addresses on a per NIC basis
67
62
  * Limited extension support
68
63
  * Microsoft's custom script extension
@@ -76,18 +71,21 @@ Choose the **Azure Resource Manager provider**, and fill in all the fields. You
76
71
  That's it. You're now ready to create and manage Azure resources in your new Azure Resource Manager compute resource. You should see something like this in the Compute Resource page:
77
72
 
78
73
 
79
- ![](https://i.imgur.com/vsamP4G.png)
74
+ ![](https://i.imgur.com/4ClZhTP.png)
80
75
 
81
76
 
82
- ![](https://i.imgur.com/Ag9tH55.png)
77
+ ![](https://i.imgur.com/eFHucdb.png)
83
78
 
84
79
 
85
- ![](https://i.imgur.com/fNjlFci.png)
80
+ ![](https://i.imgur.com/YjlRQIE.png)
86
81
 
87
82
 
88
83
  ## Planned Features
89
- * Azure Gov Cloud Support
90
- * Support for http_proxy
84
+ * Multiple NICs support
85
+ * Support to add multiple data disks (standard or premium)
86
+ * Provision using custom images
87
+ * Provision using shared image galleries
88
+ * Improved extension support
91
89
 
92
90
  ## Known Limitations
93
91
  * Please note that currently username is expected to be the same on both Virtual Machine tab for Host creation and during Image creation for Compute Resource. The password field for Image creation is optional.
@@ -10,4 +10,8 @@ module AzureComputeResourceHelper
10
10
  end
11
11
  selectable_f(f, :url, regions, {}, {:label => _('Azure Region'), :disabled => regions.empty?, :required => true, :help_inline_permanent => load_button_f(f, regions.present?, _("Load Regions")) })
12
12
  end
13
+ def azure_doc_url
14
+ doc_version = Foreman::Plugin.find(:foreman_azure_rm).version.scan(/\d+\.\d+/).first + '.x'
15
+ "https://theforeman.org/plugins/foreman_azure/#{doc_version}"
16
+ end
13
17
  end
@@ -59,21 +59,6 @@ module ForemanAzureRm
59
59
  end
60
60
  end
61
61
 
62
- def marketplace_image_plan(image)
63
- image_type, image_id = image.split('://')
64
- return nil unless image_type == 'marketplace' && image_id.include?('byos')
65
- urn = image_id.split(':')
66
- publisher = urn[0]
67
- offer = urn[1]
68
- sku = urn[2]
69
- version = urn[3]
70
- image_plan = ComputeModels::PurchasePlan.new
71
- image_plan.publisher = publisher.downcase
72
- image_plan.name = sku.downcase
73
- image_plan.product = offer.downcase
74
- image_plan
75
- end
76
-
77
62
  def marketplace_image_reference(publisher, offer, sku, version)
78
63
  image_reference = ComputeModels::ImageReference.new
79
64
  image_reference.publisher = publisher
@@ -224,7 +209,6 @@ module ForemanAzureRm
224
209
 
225
210
  def create_managed_virtual_machine(vm_hash)
226
211
  vm_params = initialize_vm(vm_hash)
227
- vm_params.plan = marketplace_image_plan(vm_hash[:image_id])
228
212
  vm_params.network_profile = define_network_profile(vm_hash[:network_interface_card_ids])
229
213
  vm_params.storage_profile.image_reference = define_image(vm_hash[:resource_group], vm_hash[:image_id])
230
214
  vm_params.storage_profile.data_disks = define_data_disks(vm_hash[:name], vm_hash[:data_disks])
@@ -1,6 +1,7 @@
1
- <%= text_f f, :app_ident, :label => _('Client ID'), :required => true %>
1
+ <%= text_f f, :app_ident, :label => _('Client ID'), :required => true, :help_inline => link_to(icon_text('help', _('Documentation'), :kind => 'pficon'),
2
+ azure_doc_url, :rel => 'external', :class => 'btn btn-default btn-docs', :target => '_blank') %>
2
3
  <%= password_f f, :password, :label => _('Client Secret'), :keep_value => true, :required => true %>
3
4
  <%= text_f f, :user, :label => _('Subscription ID'), :required => true %>
4
5
  <%= text_f f, :uuid, :label => _('Tenant ID'), :required => true %>
5
6
 
6
- <%= regions_list(@compute_resource, f) %>
7
+ <%= regions_list(@compute_resource, f) %>
@@ -1,14 +1,14 @@
1
- <thead>
2
- <tr>
3
- <th><%= _('Name') %></th>
4
- <th><%= _('Size') %></th>
5
- <th><%= _('Resource Group') %></th>
6
- <th><%= _('Region') %></th>
7
- <th><%= _('State') %></th>
8
- <th><%= _('Actions') %></th>
9
- </tr>
10
- </thead>
11
- <tbody>
1
+ <table class="table table-bordered" data-table="inline">
2
+ <thead>
3
+ <tr>
4
+ <th><%= _('Name') %></th>
5
+ <th><%= _('Size') %></th>
6
+ <th><%= _('Resource Group') %></th>
7
+ <th><%= _('Region') %></th>
8
+ <th><%= _('State') %></th>
9
+ <th><%= _('Actions') %></th>
10
+ </tr>
11
+ </thead>
12
12
  <% @vms.each do |vm| %>
13
13
  <tr>
14
14
  <td><%= link_to_if_authorized vm.name, hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.identity).merge(:auth_object => @compute_resource) %></td>
@@ -27,4 +27,4 @@
27
27
  </td>
28
28
  </tr>
29
29
  <% end %>
30
- </tbody>
30
+ </table>
@@ -2,5 +2,5 @@
2
2
  :help_inline => _("The user that will be used to SSH into the VM for completion")
3
3
  %>
4
4
  <%= password_f f, :password, :keep_value => true, :help_inline => _("Password to authenticate with - used for SSH finish step.") %>
5
- <%= image_field(f, :label => _("Azure Image Name"), :help_inline => _("For custom or shared gallery image, use prefix 'custom://' or 'gallery://'. For public and RHEL-byos images, prefix the uuid with 'marketplace://'. (e.g. 'marketplace://OpenLogic:CentOS:7.5:latest' or 'custom://image-name')")) %>
6
- <%= checkbox_f f, :user_data, :help_inline => _("Does this image support user data input?") %>
5
+ <%= image_field(f, :label => _("Azure Image Name"), :help_inline => _("For custom or shared gallery image prefix the uuid with 'custom://' or 'gallery://'. For public image, prefix the uuid with 'marketplace://'.' (e.g. 'marketplace://OpenLogic:CentOS:7.5:latest' or 'custom://image-name')")) %>
6
+ <%= checkbox_f f, :user_data, :help_inline => _("Does this image support user data input?") %>
@@ -42,7 +42,7 @@ module ForemanAzureRm
42
42
  require 'azure_mgmt_subscriptions'
43
43
 
44
44
  # Add format validation for azure images
45
- ::Image.validates :uuid, uniqueness: { scope: :compute_resource_id, case_sensitive: false }, format: { with: /\A((marketplace|custom|gallery):\/\/)[^:]+(:[^:]+:[^:]+:[^:]+)?\z/,
45
+ ::Image.validates :uuid, format: { with: /\A((marketplace|custom|gallery):\/\/)[^:]+(:[^:]+:[^:]+:[^:]+)?\z/,
46
46
  message: "Incorrect UUID format" }, if: -> (image){ image.compute_resource.is_a? ForemanAzureRm::AzureRm }
47
47
 
48
48
  # Use excon as default so that HTTP Proxy settings of foreman works
@@ -1,3 +1,3 @@
1
1
  module ForemanAzureRm
2
- VERSION = '2.1.2'.freeze
2
+ VERSION = '2.1.3'.freeze
3
3
  end
@@ -7,10 +7,9 @@
7
7
  # 0868a4d1af5275b3f70b0a6dac4c99a4, 2020
8
8
  # Bryan Kearney <bryan.kearney@gmail.com>, 2020
9
9
  #
10
- #, fuzzy
11
10
  msgid ""
12
11
  msgstr ""
13
- "Project-Id-Version: foreman_azure_rm 2.1.1\n"
12
+ "Project-Id-Version: foreman_azure_rm 2.0.8\n"
14
13
  "Report-Msgid-Bugs-To: \n"
15
14
  "PO-Revision-Date: 2020-04-21 13:58+0000\n"
16
15
  "Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>, 2020\n"
@@ -25,7 +24,7 @@ msgid "%{vm_size} VM Size"
25
24
  msgstr ""
26
25
 
27
26
  msgid "Action with sub plans"
28
- msgstr "하위 계획이 있는 작업"
27
+ msgstr ""
29
28
 
30
29
  msgid "Actions"
31
30
  msgstr "동작 "
@@ -79,13 +78,13 @@ msgid "Image"
79
78
  msgstr "이미지 "
80
79
 
81
80
  msgid "Import Puppet classes"
82
- msgstr "Puppet 클래스 가져오기"
81
+ msgstr ""
83
82
 
84
83
  msgid "Import facts"
85
- msgstr "팩트 불러오기"
84
+ msgstr ""
86
85
 
87
86
  msgid "Load Regions"
88
- msgstr "지역 로드 "
87
+ msgstr ""
89
88
 
90
89
  msgid "Marketplace Image URN"
91
90
  msgstr ""
@@ -133,7 +132,7 @@ msgid "Reload Images, Sizes, vNets"
133
132
  msgstr ""
134
133
 
135
134
  msgid "Remote action:"
136
- msgstr "원격 작업:"
135
+ msgstr ""
137
136
 
138
137
  msgid "Resource Group"
139
138
  msgstr ""
@@ -7,10 +7,9 @@
7
7
  # Maxim Burgerhout <maxim@wzzrd.com>, 2020
8
8
  # EmielK <emiel@kremers.us>, 2020
9
9
  #
10
- #, fuzzy
11
10
  msgid ""
12
11
  msgstr ""
13
- "Project-Id-Version: foreman_azure_rm 2.1.1\n"
12
+ "Project-Id-Version: foreman_azure_rm 2.0.8\n"
14
13
  "Report-Msgid-Bugs-To: \n"
15
14
  "PO-Revision-Date: 2020-04-21 13:58+0000\n"
16
15
  "Last-Translator: EmielK <emiel@kremers.us>, 2020\n"
@@ -7,10 +7,9 @@
7
7
  # sziolkow <sziolkow@gmail.com>, 2020
8
8
  # Michał Foryt <michal.foryt@gmail.com>, 2020
9
9
  #
10
- #, fuzzy
11
10
  msgid ""
12
11
  msgstr ""
13
- "Project-Id-Version: foreman_azure_rm 2.1.1\n"
12
+ "Project-Id-Version: foreman_azure_rm 2.0.8\n"
14
13
  "Report-Msgid-Bugs-To: \n"
15
14
  "PO-Revision-Date: 2020-04-21 13:58+0000\n"
16
15
  "Last-Translator: Michał Foryt <michal.foryt@gmail.com>, 2020\n"
@@ -87,7 +86,7 @@ msgid "Import facts"
87
86
  msgstr ""
88
87
 
89
88
  msgid "Load Regions"
90
- msgstr "Załaduj regiony"
89
+ msgstr ""
91
90
 
92
91
  msgid "Marketplace Image URN"
93
92
  msgstr ""
@@ -4,20 +4,18 @@
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  # Translators:
7
- # 0868a4d1af5275b3f70b0a6dac4c99a4, 2020
8
- # Bruno Emanuel Silva <bemanuel.pe@gmail.com>, 2020
9
7
  # Flamarion Jorge <jorge.flamarion@gmail.com>, 2020
8
+ # 0868a4d1af5275b3f70b0a6dac4c99a4, 2020
10
9
  # Bryan Kearney <bryan.kearney@gmail.com>, 2020
11
10
  # Luiz Henrique Vasconcelos <luizvasconceloss@yahoo.com.br>, 2020
11
+ # Bruno Emanuel Silva <bemanuel.pe@gmail.com>, 2020
12
12
  #
13
- #, fuzzy
14
13
  msgid ""
15
14
  msgstr ""
16
- "Project-Id-Version: foreman_azure_rm 2.1.1\n"
15
+ "Project-Id-Version: foreman_azure_rm 2.0.8\n"
17
16
  "Report-Msgid-Bugs-To: \n"
18
17
  "PO-Revision-Date: 2020-04-21 13:58+0000\n"
19
- "Last-Translator: Luiz Henrique Vasconcelos <luizvasconceloss@yahoo.com.br>, 20"
20
- "20\n"
18
+ "Last-Translator: Bruno Emanuel Silva <bemanuel.pe@gmail.com>, 2020\n"
21
19
  "Language-Team: Portuguese (Brazil) (https://www.transifex.com/foreman/teams/11"
22
20
  "4/pt_BR/)\n"
23
21
  "MIME-Version: 1.0\n"
@@ -30,7 +28,7 @@ msgid "%{vm_size} VM Size"
30
28
  msgstr ""
31
29
 
32
30
  msgid "Action with sub plans"
33
- msgstr "Ação com subplanos"
31
+ msgstr ""
34
32
 
35
33
  msgid "Actions"
36
34
  msgstr "Ações"
@@ -84,13 +82,13 @@ msgid "Image"
84
82
  msgstr "Imagem"
85
83
 
86
84
  msgid "Import Puppet classes"
87
- msgstr "Importar classes de Puppet"
85
+ msgstr ""
88
86
 
89
87
  msgid "Import facts"
90
- msgstr "Importar fatos"
88
+ msgstr ""
91
89
 
92
90
  msgid "Load Regions"
93
- msgstr "Carregar regiões"
91
+ msgstr ""
94
92
 
95
93
  msgid "Marketplace Image URN"
96
94
  msgstr ""
@@ -138,7 +136,7 @@ msgid "Reload Images, Sizes, vNets"
138
136
  msgstr ""
139
137
 
140
138
  msgid "Remote action:"
141
- msgstr "Ação remota:"
139
+ msgstr ""
142
140
 
143
141
  msgid "Resource Group"
144
142
  msgstr ""
@@ -4,19 +4,17 @@
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  # Translators:
7
- # Andrei Burd <burdandrei@gmail.com>, 2020
8
- # Vladimir Pavlov <v.pavlov@i-teco.ru>, 2020
9
- # Yulia <yulia.poyarkova@redhat.com>, 2020
10
7
  # 0868a4d1af5275b3f70b0a6dac4c99a4, 2020
8
+ # Andrei Burd <burdandrei@gmail.com>, 2020
11
9
  # Bryan Kearney <bryan.kearney@gmail.com>, 2020
10
+ # Vladimir Pavlov <v.pavlov@i-teco.ru>, 2020
12
11
  #
13
- #, fuzzy
14
12
  msgid ""
15
13
  msgstr ""
16
- "Project-Id-Version: foreman_azure_rm 2.1.1\n"
14
+ "Project-Id-Version: foreman_azure_rm 2.0.8\n"
17
15
  "Report-Msgid-Bugs-To: \n"
18
16
  "PO-Revision-Date: 2020-04-21 13:58+0000\n"
19
- "Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>, 2020\n"
17
+ "Last-Translator: Vladimir Pavlov <v.pavlov@i-teco.ru>, 2020\n"
20
18
  "Language-Team: Russian (https://www.transifex.com/foreman/teams/114/ru/)\n"
21
19
  "MIME-Version: 1.0\n"
22
20
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -30,7 +28,7 @@ msgid "%{vm_size} VM Size"
30
28
  msgstr ""
31
29
 
32
30
  msgid "Action with sub plans"
33
- msgstr "Действия с подпланами"
31
+ msgstr ""
34
32
 
35
33
  msgid "Actions"
36
34
  msgstr "Действия"
@@ -84,13 +82,13 @@ msgid "Image"
84
82
  msgstr "Образ"
85
83
 
86
84
  msgid "Import Puppet classes"
87
- msgstr "Импорт классов Puppet"
85
+ msgstr ""
88
86
 
89
87
  msgid "Import facts"
90
- msgstr "Импорт фактов"
88
+ msgstr ""
91
89
 
92
90
  msgid "Load Regions"
93
- msgstr "Загрузить регионы"
91
+ msgstr ""
94
92
 
95
93
  msgid "Marketplace Image URN"
96
94
  msgstr ""
@@ -138,7 +136,7 @@ msgid "Reload Images, Sizes, vNets"
138
136
  msgstr ""
139
137
 
140
138
  msgid "Remote action:"
141
- msgstr "Удаленное действие:"
139
+ msgstr ""
142
140
 
143
141
  msgid "Resource Group"
144
142
  msgstr ""
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_azure_rm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aditi Puntambekar
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-07-13 00:00:00.000000000 Z
13
+ date: 2021-03-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: deface
@@ -230,8 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  - !ruby/object:Gem::Version
231
231
  version: '0'
232
232
  requirements: []
233
- rubyforge_project:
234
- rubygems_version: 2.7.6.2
233
+ rubygems_version: 3.1.4
235
234
  signing_key:
236
235
  specification_version: 4
237
236
  summary: Azure Resource Manager as a compute resource for The Foreman