-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add IBM Power Cloud support #718
base: integration
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add documentation about new type of supported machines.
Changes to the configuration file must also be documented.
Configuration generator command must be updated to be able to generate correct configuration file.
@@ -16,6 +16,8 @@ def initialize(shared_disks, configuration_path, env, logger) | |||
def create_libvirt_disk_images(shared_disks) | |||
image_dir_path = "#{@configuration_path}/images" | |||
FileUtils.mkdir_p(image_dir_path) | |||
FileUtils.chmod 0775, image_dir_path, :verbose => true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change should not be shown. Please rebase this branch on top of integration.
end | ||
|
||
def iam_token | ||
command = "curl -k -X POST \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use net::http library to make HTTP calls instead of calling curl command: https://ruby-doc.org/3.3.5/stdlibs/net/Net/HTTP.html
@@ -41,7 +43,11 @@ def destroy_nodes(nodes, path, provider, configuration_id) | |||
|
|||
@ui.info('Destroying the machines using terraform') | |||
result = TerraformService.resource_type(provider).and_then do |resource_type| | |||
resources = TerraformService.nodes_to_resources(nodes, resource_type).values | |||
if resource_type == "ibm_pi_instance" | |||
resources = TerraformService.ibm_nodes_to_resources(nodes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please pin extra dependencies in generated terraform file with correct depends_on signature: https://developer.hashicorp.com/terraform/tutorials/configuration-language/dependencies
} | ||
}, | ||
|
||
"rhel_9_ibm": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please split examples into a set of JSON documents. MDBCI can not support different providers in one template.
4674c01
to
e747364
Compare
e747364
to
c8e0073
Compare
No description provided.