Coder Social home page Coder Social logo

bolt-project-pi's Introduction

bolt-project-pi

Getting Bolt Apply to work

This is an example bolt project directory for working with Raspberry Pi's.

This requires to get Bolt apply working (and on any other system without a native puppet-agent package):

Mark your raspberry pi's as having the puppet-agent feature in the inventory file, this skips the puppet agent installation and version check part of apply_prep (features are node/group level attributes):

groups:
  - name: raspberrybootstrap
    features:
      - 'puppet-agent'

or

groups:
  - name: raspberrybootstrap
    features: ['puppet-agent']

Are both valid.

And under the transport configuration settings, you need to specify which ruby to use, as Bolt apply will default to /opt/puppetlabs/puppet/bin/ruby (which is what puppet-agent would use). I do this in the inventory group as well, since I only want to use this for the systems I know I don't have puppet-agent package installed.

config:
  transport: ssh
  ssh:
    user: pi
    password: raspberry
    run-as: root
    interpreters:
      rb: /usr/bin/ruby

See the included inventory.yaml for a inventory group with that feature enabled.

Lastly, you will need Puppet installed in the ruby at that path somehow, see the pi::gem_puppet task for a simple (and not exactly best way) to get Puppet on the system.

Bootstrap vs ongoing

By default, the raspbian os can be configured to start with SSH, and a user with the name of pi, password of raspberry to connect with. My initial configuration of the Pi includes installing my own user account, installing my ssh key, etc, so I'd like to use pi:raspberry to only connect to a node once, and then use my keys and other credentials for future plans.

The included pi::bootstrap plan shows how to do a one off plan run with the provided nodes with the settings from the inventory group named raspberrybootstrap, before invoking the pi::testing plan (which could be a full configuration module / setup / deployment, etc).

bolt-project-pi's People

Stargazers

 avatar

Watchers

 avatar  avatar

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.