Code Monkey home page Code Monkey logo

spinnaker-ansible's Introduction

Spinnaker

An ansible role for installing and configuring Spinnaker.

Travis Build Ansible Galaxy

Installation

ansible-galaxy install AMeng.spinnaker-ansible

Role Variables

Installation:

  • spinnaker_install: Boolean. Defaults to true. Should spinnaker be installed? If using the spinnaker AMI, you probably want to disable this.
  • spinnaker_backup: Boolean. Defaults to false. Should a cron job be added to backup cassandra? Setting this true requires that you define spinnaker_backup_bucket.
  • spinnaker_backup_bucket: String. The S3 bucket to store cassandra backups. Include a trailing slash if using folder names.
  • spinnaker_cassandra_local: Boolean. Defaults to true. Will cassandra run locally?
  • spinnaker_cassandra_version: String. Defaults to "2.1.11"
  • spinnaker_redis_local: Boolean. Defaults to true. Will redis run locally?
  • spinnaker_packer_version: String. Defaults to "0.12.1"

Configuration:

  • spinnaker_environment: Dictionary. Environment variables for the spinnaker process. See example playbooks below or check the Spinnaker GitHub Repo for more examples.

These variables are used to populate Spinnaker's YAML configuration files. See the example playbooks below for more information. The YAML under each variable will be copied to the following files:

Variable File
spinnaker_config spinnaker-local.yml
spinnaker_config_clouddriver clouddriver-local.yml
spinnaker_config_echo echo-local.yml
spinnaker_config_gate gate-local.yml
spinnaker_config_igor igor-local.yml
spinnaker_config_orca orca-local.yml
spinnaker_config_fiat fiat-local.yml
spinnaker_config_rosco rosco-local.yml
spinnaker_config_front50 front50-local.yml

Example Playbooks

Default configuration:

- hosts: servers
  roles:
    - AMeng.spinnaker

Basic configuration:

- hosts: servers
  roles:
    - AMeng.spinnaker
  vars:
    spinnaker_backup: True
    spinnaker_backup_bucket: "MyBucket"
    spinnaker_environment:
      spinnaker_aws_enabled: "true"
    spinnaker_config:
      providers:
        aws:
          enabled: true
          defaultRegion: us-east-1
          defaultIAMRole: spinnaker
      services:
        deck:
          timezone: America/Denver

Advanced configuration:

- hosts: servers
  roles:
    - AMeng.spinnaker
  vars:
    spinnaker_backup: True
    spinnaker_backup_bucket: "MyBucket/MyFolder/"
    spinnaker_environment:
      spinnaker_aws_enabled: "true"
      spinnaker_aws_default_region: us-east-1
      aws_vpc_id: vpc-12345678
      aws_subnet_id: subnet-98765432
    spinnaker_config:
      providers:
        aws:
          enabled: true
          defaultRegion: us-east-1
          defaultIAMRole: spinnaker
      services:
        deck:
          timezone: America/Denver
        auth:
          enabled: true
    spinnaker_config_clouddriver:
      aws:
        accounts:
          - name: production
            accountId: 111111111111
            discovery: http://eureka.production.example.com
          - name: staging
            accountId: 222222222222
            discovery: http://eureka.staging.example.com
    spinnaker_config_gate:
      saml:
        enabled: true
        requireAuthentication: true
        url: https://example.okta.com/app/spinnaker/xxxxxxxxxxxxxxxxxxxx/sso/saml
        certificate: /path/to/certificate
        issuerId: http://www.okta.com/xxxxxxxxxxxxxxxxxxxx
        keyStore: /path/to/keystore
        keyStoreType: JKS
        keyStorePassword: password
        keyStoreAliasName: okta

Supported Versions

  • Ansible 2.0.2.0
  • Ansible 2.1.3.0

Notes

This playbook is only tested with AWS. While spinnaker supports other clouds, this playbook has not been tested with them. Contributions for other providers will be gladly accepted.

License

MIT

spinnaker-ansible's People

Contributors

ameng avatar nextrevision avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

spinnaker-ansible's Issues

galaxy version is not the same as the github one

If you install the ansible galaxy version of this role
still does not come with the latest changes like configuration files for
front50-local.yml, echo-local.yml etc.
still the documentation here reflects those changes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.