punchplatform-synchronization.sh¶
commands to synchronize the configuration workspace of lmc user and retrieve the synchronization status of the current configuration directory
SYNOPSIS¶
punchplatform-synchronize.sh ( –get | –pull )
DESCRIPTION¶
punchplatform-synchronization.sh is a tool to manage revision status of a punchplatform configuration directory of the host.
The following options are available:
- –get:
- Retrieves version information of PUNCHPLATFORM_CONF_DIR of punchplatform : user, hostname, hash of the last commit and ‘up-to-date’ boolean. If a the command failed, then we put FAILED as result. If the version tool (example : git) is not available then last commit hash and up-to-date are not provided. Return a Json string.
- –pull:
- If the version tool is configured then we launch a pull request on PUNCHPLATFORM_CONF_DIR. Return the return code of version tool command.
DIAGNOSTICS¶
The punchplatform-synchronization.sh utility exits 0 on success, and >0 if an error occurs.
ENVIRONMENT¶
The following required environment variable affect the execution of punchplatform-synchronization.sh:
- PUNCHPLATFORM_CONF_DIR : The PunchPlatform_CONFDIR must point to the directory holding the punchplatform.properties file.
SEE ALSO¶
punchplatform-channel.sh(8) punch(8), punchplatform-env(8) or online documentation in punchplatform setup “doc” directory.