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

[crm script] create resources instead of appending existeng ones #3

Open
mgrzybek opened this issue Feb 20, 2019 · 0 comments
Open

Comments

@mgrzybek
Copy link
Owner

In order to append resources to tho storage group we need to run cluster commands to create them.
It could be easier to let the role create them for us. For example, they could be directly written in the crm script.

Before:

  vars:
    ha_storage:
      openrc: /etc/openrc.sh
      cinder_volumes:
        - 55659db9-1bea-46e1-a894-4b257be72bdd
        - 548ef897-32b6-4331-99b7-4823ac6680cd
      volume_group: db
      filesystems:
        - lv: data
          size: 20G
          fstype: xfs
          mountpoint: /srv/data
      append_resources:
        - name: pgsql

After:

  vars:
    ha_storage:
      openrc: /etc/openrc.sh
      cinder_volumes:
        - 55659db9-1bea-46e1-a894-4b257be72bdd
        - 548ef897-32b6-4331-99b7-4823ac6680cd
      volume_group: db
      filesystems:
        - lv: data
          size: 20G
          fstype: xfs
          mountpoint: /srv/data
      append_resources:
        -  name: postgresql-service
           type: docker
           params:
               - allow_pull=true
               - image=postgresql:11
               - run_opts="-v /srv/data:/data"
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

No branches or pull requests

1 participant