Changeset 281
- Timestamp:
- 01/19/2009 16:08:58 (3 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
-
confman.8 (modified) (7 diffs)
-
confman.conf.5 (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/confman.8
r280 r281 75 75 .It singularity 76 76 A singularity is a file that is constructed from components in each module 77 of the recipe. 78 .Pp 79 For example, assume we have a recipe with the contents: 80 .Pp 81 .Dl "core" 82 .Dl "www" 83 .Pp 84 Next, assume that we have configured the file "/etc/rc.conf" as a singularity. 85 We will have two pieces of this file in our working copy: 86 .Pp 87 ~/src/conf/core/etc/rc.conf-core: 88 .Pp 89 .Dl sshd_enable="YES" 90 .Dl usbd_enable="YES" 91 .Dl accounting_enable="YES" 92 .Pp 93 ~/src/conf/www/etc/rc.conf-www: 94 .Pp 95 .Dl apache22_enable="YES" 96 .Pp 97 The resulting "/etc/rc.conf" that will be installed upon an install or commit 98 operation is the concatenation of the pieces: 99 .Pp 100 .Dl sshd_enable="YES" 101 .Dl usbd_enable="YES" 102 .Dl accounting_enable="YES" 103 .Dl apache22_enable="YES" 77 of the recipe. See the 78 .Sx SINGULARITIES 79 subsection of 80 .Sx EXAMPLES 81 for an example of how this works. 82 .It state 83 A system can either be in a dirty or clean state. 84 A dirty system is one that has missed a 85 .Xr confsync 8 operation in order to preserve changes made by installation 86 operations occurring between the repository's 87 .Xr confexport 8 and the invocation of 88 .Cm confsync . 89 .Pp 90 Dirty systems may have out-of-date configuration files. Subsequent 91 .Cm confsync 92 or 93 .Nm 94 .Cm commit 95 operations can bring the system up-to-date. 104 96 .El 105 97 .\" TODO 106 .Pp107 This doesn't belong here, but I don't want to forget it:108 .Pp109 A dirty system is one that has missed an automated "sync" operation in order110 to preserve changes made by installation operations occurring between the111 repository's export and the system's call to "sync."112 .Pp113 Dirty systems may have out-of-date configuration files. Subsequent sync or114 commit operations can bring the system up-to-date.115 98 .Ss COMMANDS 116 99 The following commands are supported by … … 298 281 This small set of examples should be enough to demonstrate some common use 299 282 cases for new users. We assume a default working copy location of 300 "~/src/conf" .301 . Pp283 "~/src/conf", and paths in these examples will be relative to this directory. 284 .Ss MODULES 302 285 First, we will create a module named core: 303 286 .Pp … … 312 295 .Pp 313 296 .Dl "confman create marvin" 314 . Pp297 .Ss RECIPES 315 298 Now let's generate marvin's recipe: 316 299 .Pp … … 327 310 .Pp 328 311 .Dl "confman recipe set marvin" 329 . Pp312 .Ss WORKING WITH FILES 330 313 Files have to be imported into 331 314 .Nm … … 336 319 .Pp 337 320 In order to make a change to /etc/resolv.conf, we will modify the working 338 copy found in ~/src/conf/core/etc/resolv.conf. We'll add a domain to our 339 search path. Next, we'll also make some changes to 340 ~/src/conf/core/etc/periodic.conf. Once we're all set, we will commit our 341 changes: 321 copy found in core/etc/resolv.conf. We'll add a domain to our 322 search path. Next, we'll also make some changes to core/etc/periodic.conf. 323 Once we're all set, we will commit our changes: 342 324 .Pp 343 325 .Dl "confman commit" … … 347 329 repository for other servers to see, but until some action is taken, they 348 330 will not be rolled out. 349 . Pp331 .Ss SINGULARITIES 350 332 Now let's assume that we have configured /etc/rc.conf as a singularity 351 333 (See … … 357 339 .Dl "confman import marvin /etc/rc.conf" 358 340 .Pp 341 We will put our globally relevant options in the core portion 342 (core/etc/rc.conf-core): 343 .Pp 344 .Dl sshd_enable="YES" 345 .Dl usbd_enable="YES" 346 .Dl accounting_enable="YES" 347 .Pp 348 And our host-specific configurations in the marvin portion 349 (www/etc/rc.conf-marvin): 350 .Pp 351 .Dl apache22_enable="YES" 352 .Pp 353 The resulting "/etc/rc.conf" that will be installed upon an install or commit 354 operation is the concatenation of the pieces: 355 .Pp 356 .Dl sshd_enable="YES" 357 .Dl usbd_enable="YES" 358 .Dl accounting_enable="YES" 359 .Dl apache22_enable="YES" 359 360 .Sh SEE ALSO 360 361 .Xr confman.conf 5 ,
Note: See TracChangeset
for help on using the changeset viewer.
