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 the ability to define OpenStack Compute Instance user_data #735

Closed
laurentganne opened this issue May 10, 2021 · 2 comments · Fixed by #736
Closed

Add the ability to define OpenStack Compute Instance user_data #735

laurentganne opened this issue May 10, 2021 · 2 comments · Fixed by #736
Assignees
Labels
enhancement New feature or request

Comments

@laurentganne
Copy link
Contributor

laurentganne commented May 10, 2021

The OpenStack API provides a Compute Instance property user_data allowing to provide configuration information or scripts used by cloud-init.

The TOSCA type yorc.nodes.openstack.Compute should be updated to support this user_data property, and the terraform provider should set this property described in Terraform OpenStack provider documentation.

@loicalbertin
Copy link
Member

Is this related or unrelated to cloud-init?

@laurentganne
Copy link
Contributor Author

Is this related or unrelated to cloud-init?

yes, you can pass there cloud-init scripts. Example of user_data value that you can set and that will be used at cloud-init:

  #cloud-config
  write_files:
  - content: |
      /data/share *(rw,sync)
    owner: root:root
    path: /etc/exports
    permissions: '0644'
  runcmd:
   - [ mkdir, -p, /data/share ]
   - [ chown, "centos:centos", -R, /data/share ]
   - [ systemctl, enable, nfs-server ]
   - [ systemctl, start, nfs-server ]
   - [ exportfs, -avr ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants