Tags:
create new tag
view all tags

LCFG Stub Profile

Sometimes it is useful to create a generic "stub" profile which can be used to publish information to a spanning map for a non-managed machine.

Here's what we use in Informatics:

#ifndef DICE_OS_STUB
#define DICE_OS_STUB

#include <mutate.h>

#define _DEFAULT_RELEASE develop

#include <live/inf-site.h>

#include <lcfg/defaults/release_version.h>

#include <lcfg/defaults/profile.h>

!profile.notify           mSET(no)
!profile.format           mSET(stub)

#ifdef LCFG_PROFILE_PACKAGES_NO_OPTS
!profile.packages         mSET()
#else
!profile.packages         mSET(options) /* really none */
!profile.packages_options mSET()
#endif

#include <lcfg/defaults/inv.h>
#include <lcfg/defaults/sysinfo.h>

/* Load any inventory data */
#include <infdb_data.h>

#ifndef NO_DHCP
#include <dice/options/dhclient.h>
#endif

#define FSTAB_PARTITION(P,M,S,T,PR,MO) /* noop */

#endif /* DICE_OS_STUB */

-- squinney - 2019-03-20

Topic revision: r1 - 2019-03-20 - squinney
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback