Dear CFEngineer,
Yesterday I reinstalled my two Raspberries with:
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=50310It creates the almost minimal, but sufficiently minimal, install I need for The CFEngine Roadshow. Using the
cfengineers.net package
http://www.cfengineers.net/files/packages/cfengine-community/3.6.5/cfengine-community_3.6.5-1.debian_7_armhf.deb it works like a charm.
After the bootstrap to the Roadshow hub I ran
root@webjen1801:/var/cfengine/inputs/roadshow_policies# cf-agent -KI -f ./report_sys_os.cf -b report_sys_os
2015-06-25T11:14:10+0000 info: Using command line specified bundlesequence
R: Hard class os: linux debian_7
R: Hard class os_version: linux_armv6l
R: Hard classos_flavor: debian_7because I prepared for a bit of work introducing a new platform.
The report startledme, because it returns debian_7 as its sys.flavor. I use sys.flavor to determine policies that are applicable on the platform, both for OS stuff and role stuff. Ubuntu gets in the way, because it litters my apt-cacher-ng cache and I was afraid Raspbian woud do the same.
I decided to give it a go non theless. Much to my surprise I ended up with two webapp (Hudson and Jenkins) running Raspberry machines, without the need to develop any additional policy. It just runs out of the box. This means the policies are sufficiently generic to support both platforms.
There are differences though:
This is the Debian wheezy machine:
root@webjen0086:/var/cache/apt/archives# ls -l openjdk-*
-rw------- 1 root root 238422 Apr 24 12:01 openjdk-6-jre_6b35-1.13.7-1~deb7u1_amd64.deb
-rw------- 1 root root 32836740 Apr 24 12:01 openjdk-6-jre-headless_6b35-1.13.7-1~deb7u1_amd64.deb
-rw------- 1 root root 6252972 Apr 24 12:01 openjdk-6-jre-lib_6b35-1.13.7-1~deb7u1_all.debThis is the Raspberry:
root@webjen1801:/var/cache/apt/archives# ls -l openjdk-6-jre*
-rw------- 1 root root 258740 Jun 21 03:41 openjdk-6-jre_6b35-1.13.7-1~deb7u1+rpi1_armhf.deb
-rw------- 1 root root 30598814 Jun 21 03:41 openjdk-6-jre-headless_6b35-1.13.7-1~deb7u1+rpi1_armhf.deb
-rw------- 1 root root 6272334 Jun 21 03:41 openjdk-6-jre-lib_6b35-1.13.7-1~deb7u1+rpi1_all.debBut these package files are common:
root@webjen0086:/var/cache/apt/archives# ls -l tomcat6*
-rw------- 1 root root 41052 Jul 18 2013 tomcat6_6.0.35-6+deb7u1_all.deb
-rw------- 1 root root 48346 Jul 18 2013 tomcat6-admin_6.0.35-6+deb7u1_all.deb
-rw------- 1 root root 52254 Jul 18 2013 tomcat6-common_6.0.35-6+deb7u1_all.debroot@webjen1801:/var/cache/apt/archives# ls -l tomcat6*
-rw------- 1 root root 41052 Jul 18 2013 tomcat6_6.0.35-6+deb7u1_all.deb
-rw------- 1 root root 48346 Jul 18 2013 tomcat6-admin_6.0.35-6+deb7u1_all.deb
-rw------- 1 root root 52254 Jul 18 2013 tomcat6-common_6.0.35-6+deb7u1_all.debI have to find out if it holds on the long run.
Next: Androids!
Cheers,
Martin.