Editing Device management using Bcfg2
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 15: | Line 15: | ||
|- | |- | ||
| Device | | Device | ||
- | | Maemo based handset, such as | + | | Maemo based handset, such as Nokia N900 |
|- | |- | ||
| Device management | | Device management | ||
Line 21: | Line 21: | ||
|- | |- | ||
| Enterprise | | Enterprise | ||
- | | A large company | + | | A large company ot other organization that wants employees to ba able to acces company IT systems using Maemo based devices |
|- | |- | ||
| Desktop computer | | Desktop computer | ||
Line 33: | Line 33: | ||
|} | |} | ||
- | Instructions given in this article are tested on | + | Instructions given in this article are tested on Fremantle. They may work on other releases as well, but probably not. |
=== Recommended reading === | === Recommended reading === | ||
- | Basic use and concepts of Bcfg2 are not in the scope of this article. | + | Basic use and concepts of Bcfg2 are not in the scope of this article. However, find below some links which may help you to get started |
*[http://www.linuxlinks.com/article/20100222155850632/ConfigurationManagement.html 7 of the Best Free Linux Configuration Management Tools] | *[http://www.linuxlinks.com/article/20100222155850632/ConfigurationManagement.html 7 of the Best Free Linux Configuration Management Tools] | ||
- | * [http:// | + | * [http://trac.mcs.anl.gov/projects/bcfg2/wiki/Bcfg2Doc Bcfg2 documentation] |
== Device management? Why bother? == | == Device management? Why bother? == | ||
Line 72: | Line 72: | ||
== Getting Bcfg2 up and running == | == Getting Bcfg2 up and running == | ||
- | <font color="red">A word of warning</font>: Configuration management is complicated | + | <font color="red">A word of warning</font>: Configuration management is complicated area. Learning Bcfg2 and the concepts behind it do take some time and effort. Do NOT by try to manage Maemo clients as your first Bcfg2 rehearsal. Instead, familiarize yourself with Bcfg2 first using "ordinary" computers as clients. |
=== Problems with Bcfg2 in Maemo === | === Problems with Bcfg2 in Maemo === | ||
Line 96: | Line 96: | ||
# There is no good way for bootstrapping right now | # There is no good way for bootstrapping right now | ||
#* Installation must be performed from Device command line | #* Installation must be performed from Device command line | ||
+ | # Maemo does not have debsums utility | ||
+ | #* Causes APT package driver not to load | ||
=== Server installation === | === Server installation === | ||
Line 141: | Line 143: | ||
tar zcvf bcfg2-1.0.1-mod.tar.gz bcfg2-1.0.1 | tar zcvf bcfg2-1.0.1-mod.tar.gz bcfg2-1.0.1 | ||
- | Transfer <code>bcfg2-1.0.1-mod.tar.gz</code> | + | Transfer <code>bcfg2-1.0.1-mod.tar.gz</code>. To the Device. Open (at Device) terminal window and install Bcfg2 by entering following commands |
apt-get install python | apt-get install python | ||
Line 192: | Line 194: | ||
This is a simple file | This is a simple file | ||
- | Edit file <code>/var/lib/bcfg2/Cfg/etc/simple/ | + | Edit file <code>/var/lib/bcfg2/Cfg/etc/simple/simple</code> to contain following: |
<FileInfo> | <FileInfo> | ||
Line 218: | Line 220: | ||
==== Some explanation: ==== | ==== Some explanation: ==== | ||
- | + | Bcfg2 has build the configuration using layered approach: | |
- | Bcfg2 | + | |
- | + | ||
* Metadata (roughly: "which kind of configuration should be where") | * Metadata (roughly: "which kind of configuration should be where") | ||
* Abstract (roughly: what should be configured) | * Abstract (roughly: what should be configured) | ||
Line 229: | Line 229: | ||
One thing to like in Bcfg2 is that it does not mandate things too much. Third item is an example of that. Bcfg2 allows short-circuiting the Literal layer processing altogether by adding "Bound" in front of the keyword. In a simple cases where what we want exactly is already known already at abstract level this can simplify things. | One thing to like in Bcfg2 is that it does not mandate things too much. Third item is an example of that. Bcfg2 allows short-circuiting the Literal layer processing altogether by adding "Bound" in front of the keyword. In a simple cases where what we want exactly is already known already at abstract level this can simplify things. | ||
- | === Hooking the Device and Bcfg2 | + | === Hooking the Device and Bcfg2 together === |
- | + | Add following line into <code>/var/lib/bcfg2/Metadata/clients.xml</code> | |
<Client uuid="foo" name="bar" profile="maemo" password="xyzzy" pingable="N" location="floating" auth="cert+password"/> | <Client uuid="foo" name="bar" profile="maemo" password="xyzzy" pingable="N" location="floating" auth="cert+password"/> | ||
Line 249: | Line 249: | ||
bcfg2 -I | bcfg2 -I | ||
- | You should | + | You should see a confirmation prompt for each configuration item defined in the samole configuration, due to use of <code>-I</code> option. |
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
<hr/> | <hr/> | ||
- | |||
== TODO == | == TODO == | ||
- | + | Autogroup probe | |
- | + | MaemoAPT package driver | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
[[Category:Power users]] | [[Category:Power users]] |
Learn more about Contributing to the wiki.