Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 3.129.67.32
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/ansible_collections/purestorage/fusion/playbooks/simple/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/lib/python3/dist-packages/ansible_collections/purestorage/fusion/playbooks/simple/setup_workloads.yml
---
- name: Setup workloads
  hosts: localhost
  # This playbook create:

  # *- Tenant space: db_tenant_space
  # *- Placement Group: pg1
  # *- AIX host access policy: customer_host_access
  # *- volume: data_vol1
  # *- volume: data_vol2

  # require:
  # *- Storage class: db_high_performance
  # *- Tenant: oracle_dbas
  # *- Region: region1

  tasks:
    - name: Create new tenant space db_tenant_space for oracle_dbas
      purestorage.fusion.fusion_ts:
        issuer_id: "{{ ansible_env.FUSION_ISSUER_ID }}"
        private_key_file: "{{ ansible_env.FUSION_PRIVATE_KEY_FILE }}"
        name: "db_tenant_space"
        tenant: "oracle_dbas"
        state: "present"  # or absent

    - name: Create new placement group named pg1
      purestorage.fusion.fusion_pg:
        issuer_id: "{{ ansible_env.FUSION_ISSUER_ID }}"
        private_key_file: "{{ ansible_env.FUSION_PRIVATE_KEY_FILE }}"
        name: "pg1"
        tenant: "oracle_dbas"
        tenant_space: "db_tenant_space"
        region: "region1"
        availability_zone: "az1"
        storage_service: "db_xl"
        state: "present"  # or absent

    - name: Create new host access policy
      purestorage.fusion.fusion_hap:
        issuer_id: "{{ ansible_env.FUSION_ISSUER_ID }}"
        private_key_file: "{{ ansible_env.FUSION_PRIVATE_KEY_FILE }}"
        name: "customer_host_access"
        personality: "linux"
        iqn: "iqn.1994-05.com.redhat:9dd57693efb"
        state: "present"  # or absent

    - name: Create new volume data_vol1 in storage_class db_high_performance
      purestorage.fusion.fusion_volume:
        issuer_id: "{{ ansible_env.FUSION_ISSUER_ID }}"
        private_key_file: "{{ ansible_env.FUSION_PRIVATE_KEY_FILE }}"
        name: "data_vol1"
        storage_class: "db_high_performance"
        size: "500G"  # Volume size in M, G, T or P units.
        tenant: "oracle_dbas"
        tenant_space: "db_tenant_space"
        placement_group: "pg1"
        host_access_policies: "customer_host_access"
        state: "present"  # or absent

    - name: Create new volume data_vol2 in storage_class db_high_performance
      purestorage.fusion.fusion_volume:
        issuer_id: "{{ ansible_env.FUSION_ISSUER_ID }}"
        private_key_file: "{{ ansible_env.FUSION_PRIVATE_KEY_FILE }}"
        name: "data_vol2"
        storage_class: "db_high_performance"
        size: "500G"  # Volume size in M, G, T or P units.
        tenant: "oracle_dbas"
        tenant_space: "db_tenant_space"
        placement_group: "pg1"
        host_access_policies: "customer_host_access"
        state: "present"  # or absent

Anon7 - 2022
AnonSec Team