Skip to content
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

Open
wants to merge 15 commits into
base: integration
Choose a base branch
from
Open

Conversation

nazarovdo
Copy link
Contributor

No description provided.

Copy link
Contributor

@amvasilyev amvasilyev left a 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.

config/boxes/boxes_ppc64le_ibm.json Outdated Show resolved Hide resolved
@@ -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
Copy link
Contributor

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 \
Copy link
Contributor

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)
Copy link
Contributor

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": {
Copy link
Contributor

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.

@nazarovdo nazarovdo force-pushed the fruc-116-ibm-cloud branch 2 times, most recently from 4674c01 to e747364 Compare October 7, 2024 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants