All Projects → PureStorage-OpenConnect → ansible-playbook-examples

PureStorage-OpenConnect / ansible-playbook-examples

Licence: Apache-2.0 license
Ansible playbook samples using Rest API calls for Pure Storage products

Programming Languages

Jinja
831 projects
shell
77523 projects
powershell
5483 projects

Projects that are alternatives of or similar to ansible-playbook-examples

dotfiles
Minimalistic dotfiles setup for MacOS and Linux
Stars: ✭ 22 (-12%)
Mutual labels:  ansible-playbook
dns-server-setup
Ansible playbook to easily deploy new, fully configured, DNS servers.
Stars: ✭ 48 (+92%)
Mutual labels:  ansible-playbook
ans-pve-win-templ
Ansible playbook to create Proxmox Windows VM templates
Stars: ✭ 49 (+96%)
Mutual labels:  ansible-playbook
chatroom
💬chat
Stars: ✭ 56 (+124%)
Mutual labels:  ansible-playbook
ansible-playbook-volumio-bluetooth
Pair your phone and stream audio to a Raspberry Pi running Volumio
Stars: ✭ 13 (-48%)
Mutual labels:  ansible-playbook
LXD-Cloud
Lightweight server management using LXD and Ansible
Stars: ✭ 19 (-24%)
Mutual labels:  ansible-playbook
Spamscope
Fast Advanced Spam Analysis Tool
Stars: ✭ 223 (+792%)
Mutual labels:  ansible-playbook
keycloak-kubernetes
Keycloak deployment into Kubernetes cluster
Stars: ✭ 25 (+0%)
Mutual labels:  ansible-playbook
dockpack
This project uses ansible, packer and vagrant to create an agile lab.
Stars: ✭ 13 (-48%)
Mutual labels:  ansible-playbook
catalyst9k-network-automation
Sample python scripts for automation workflows for feature sets present in Catalyst Switching using openly available YANG data models
Stars: ✭ 40 (+60%)
Mutual labels:  ansible-playbook
manjaro-playbook
Manjaro/Arch Linux Ansible provision playbook
Stars: ✭ 25 (+0%)
Mutual labels:  ansible-playbook
ansible-palybooks
Ansible Palybooks Written and Published by www.server-computer.com. NO WARRANTY for any damages and loss of data.
Stars: ✭ 24 (-4%)
Mutual labels:  ansible-playbook
Kali-TX
Customized Kali Linux - Ansible playbook
Stars: ✭ 54 (+116%)
Mutual labels:  ansible-playbook
UBUNTU20-CIS
Ansible role for Ubuntu 2004 CIS Baseline
Stars: ✭ 136 (+444%)
Mutual labels:  ansible-playbook
ansible
Ansible playbook automation for pfelk
Stars: ✭ 23 (-8%)
Mutual labels:  ansible-playbook
Ansible Playbook Grapher
A command line tool to create a graph representing your Ansible playbook tasks and roles
Stars: ✭ 234 (+836%)
Mutual labels:  ansible-playbook
hanzo
Ansible orchestration to configure a development environment -
Stars: ✭ 22 (-12%)
Mutual labels:  ansible-playbook
initial-webserver-setup
Ansible playbook for initial ubuntu 16.04 webserver setup and Laravel zero time deployment
Stars: ✭ 50 (+100%)
Mutual labels:  ansible-playbook
arch-ansible
An Ansible playbook to install Arch Linux
Stars: ✭ 33 (+32%)
Mutual labels:  ansible-playbook
action.playbook
Github Action for running Ansible Playbooks.
Stars: ✭ 26 (+4%)
Mutual labels:  ansible-playbook

Introduction

This repository contains a number of simple Ansible playbooks using both the PUREFA and PUREFB modules to issue commands to Pure Storage FlashArrays or FlashBlades.

The following items are assumed by all playbooks:

  • The user has a working knowledge of Ansible and Ansible Playbooks
  • Minimum Ansible version is denoted in the README or the actual playbooks.
  • Your Pure Storage FlashArray or FlashBlade should be accessible from your local Ansible host.
  • You have obtained a privileged API token from the Pure Storage FlashArray or FlashBlade that will be used by the playbooks.

FlashArray and FlashBlade modules are natively included in Ansible and are obtained by installing the latest Ansible package:

# pip install ansible

FlashArray (incl. Cloud Block Store) Playbooks

Customizing Playbooks for your environment

Playbooks must contain the following variables:

  • fa_url
  • api_token

where fa_url is the Management VIP of your FlashArray and api_token is obtained from a FlashArray for specific users using the GUI interface in Settings -> Users and select Show API Token... from the 3 elipses on the right side of the display, next to the user you require the token for. You may also get the api_token by executing the following Purity command after using SSH to log directly onto the array:

# pureadmin list <username> --api-token --expose

Note: You can only expose the API token for the username you re logged in as on both the GUI and the CLI.

It is adviseable to use these variables per play when working with multiple FlashArrays, however you may also use environment variables to set these values externally to playbooks so they are not needed in the playbook. This is useful when configuring only one FlashArray.

The environment varaibles are:

  • PUREFA_URL
  • PUREFA_API

FlashBlade Playbooks

Customizing Playbooks for your environment

Playbooks must contain the following variables:

  • fb_url
  • api_token

where fb_url is the Management VIP of your FlashBlade and api_token is obtained from a FlashBlade for specific users by running the following Purity command after using SSH to log directly onto the FlashBlade:

# pureadmin list <username> --api-token --expose

Note: You can only expose the API token for the username you re logged in as.

It is adviseable to use these variables per play when working with multiple FlashBlades, however you may also use environment variables to set these values externally to playbooks so they are not needed in the playbook. This is useful when configuring only one FlashArray.

The environment varaibles are:

  • PUREFB_URL
  • PUREFB_API

Running Playbooks

After modifying your playbooks you can execute them by using:

$ ansible-playbook <playbook-name>.yaml
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].