Showing posts with label raspberry pi. Show all posts
Showing posts with label raspberry pi. Show all posts

Sunday, December 9, 2012

puppet on the pi

Well, a follow-up of sorts on the raspberry pi and puppet posting from a while back

Thought I would post the code up on my github account, https://github.com/bilsch.

Tried rebuilding from a fresh image. Other than burning a lot of cpu time on puppet installation itself ( think I have a fix for this one, don't generate rdoc/ri ) the fresh install to a running pi where I essentially want it. Everything worked fine except for the fimware/boot rom update which is just another git clone/copy.

Friday, November 23, 2012

Raspberry pi puppet

So, I decided I really wanted to have an easy way to get my raspberry pi images to a somewhat sane state but I did not really want to write shell scripts to do this.

I've been using puppet at work for over a year now and its pretty simple really - most of the time I spend on puppet configs is debugging various isms ( like, for an ssh authorized keys manipulation, you can't throw an array to user :-< )

Planning to test out my image process soon-ish. Still need to get mcollective working properly - think its about the last module still erroring out on me.

So far, I have:

  1. ssh configuration
  2. various package installations
    • rasp-config, ruby-shadow, python-pip, ruby-dev
    • ruby packages: builder ( for gem installs ), wiringpi
    • pip ( python ) package rpi.gpio
  3. rsync backup, just a simple backup to my fileserver
  4. /boot/config.txt so I can preserve any modifications I may want
  5. locales config
  6. user maint, putting my ssh key in place, forcing pi's password to be maintained/not raspberry
  7. automate git clone of remote repos
    ( So I don't have to remember to do those by hand though updates/pull will be manual )
Only down side is that I'll still need a bootstrap script to put a few packages on the box - puppet/facter gems and puppet.conf, then I should just need to run puppet agent and everything should magically appear

I may upload the puppet configs to github but most of the configurations are going to be local

Wednesday, November 7, 2012

puppetlabs dist for arm

W: Failed to fetch http://apt.puppetlabs.com/dists/precise/Release  Unable to find expected entry 'main/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)

Bummer! I guess I can't use the puppet dist from puppet labs directly :-< May be worth the time to compile/install manually but for now - meh :->

Wednesday, October 31, 2012

Raspberry Pi 512m model ram

So this is interesting, by default ( at least with AdaFruit's occidentalis 0.2, http://learn.adafruit.com/adafruit-raspberry-pi-educational-linux-distro/occidentalis-v0-dot-2 ) I was only seeing the first 256m of the ram.

Looking at the documentation http://elinux.org/RPi_config.txt it looks like a simple modification to /boot/config.txt addressed the issue:

gpu_mem_512=8

pi@raspberrypi ~ $ free -m

             total       used       free     shared    buffers     cached
Mem:           486         56        429          0          9         28
-/+ buffers/cache:         18        467
Swap:           99          0         99

It looks like the kernel actually took 16 meg instead of 8 like I wanted but I'll take it :-> I'm logging in only via ssh so I don't see a reason to waste memory on video output.