Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
ChronyConfigurer.cpp File Reference
#include "ChronyConfigurer.hpp"
#include "core/CSystem.hpp"
#include "core/ipUtils.hpp"
#include <fmt/format.h>
#include <fstream>
Include dependency graph for ChronyConfigurer.cpp:

Namespaces

namespace  iv
 
namespace  iv::auxiliary
 
namespace  iv::auxiliary::chrony
 

Functions

bool iv::auxiliary::chrony::configureChrony (std::shared_ptr< iv::diamar::Stations > stations, std::string &errorMessage, iv::types::stationId stationId)
 
bool iv::auxiliary::chrony::isChronyRunning ()
 

Variables

static constexpr std::string_view CONFIG_EXTERNAL_TIME_SERVERS
 
static constexpr std::string_view ALLOW_NETWORKS_HEARDER = "# Allow communication through subnetworks\n"
 
static constexpr std::string_view ALLOW_NETWORK_SYNC = "allow {}/24\n"
 
static constexpr std::string_view DEFINE_SERVER_HEADER = "# Define servers\n"
 
static constexpr std::string_view DEFINE_SERVER
 
static constexpr std::string_view MAKESTEP_CONFIG = "makestep 1 -1\n"
 
static constexpr std::string_view STAGING_CHRONY_CONFIG_FILE = "/tmp/chrony.conf"
 
static constexpr std::string_view CHRONY_CONFIG_FILE = "/etc/chrony/chrony.conf"
 
static constexpr std::string_view OTHER_CONFIG_HEADER = "# Other configuration\n"
 

Variable Documentation

◆ ALLOW_NETWORK_SYNC

std::string_view ALLOW_NETWORK_SYNC = "allow {}/24\n"
staticconstexpr

◆ ALLOW_NETWORKS_HEARDER

std::string_view ALLOW_NETWORKS_HEARDER = "# Allow communication through subnetworks\n"
staticconstexpr

◆ CHRONY_CONFIG_FILE

std::string_view CHRONY_CONFIG_FILE = "/etc/chrony/chrony.conf"
staticconstexpr

◆ CONFIG_EXTERNAL_TIME_SERVERS

std::string_view CONFIG_EXTERNAL_TIME_SERVERS
staticconstexpr
Initial value:
= "# External NTP Server \n"
"server time.google.com iburst\n"

◆ DEFINE_SERVER

std::string_view DEFINE_SERVER
staticconstexpr
Initial value:
=
"server {} iburst maxdelay 10.0 maxdelaydevratio 1000 minpoll 3 maxpoll 3\n"

◆ DEFINE_SERVER_HEADER

std::string_view DEFINE_SERVER_HEADER = "# Define servers\n"
staticconstexpr

◆ MAKESTEP_CONFIG

std::string_view MAKESTEP_CONFIG = "makestep 1 -1\n"
staticconstexpr

◆ OTHER_CONFIG_HEADER

std::string_view OTHER_CONFIG_HEADER = "# Other configuration\n"
staticconstexpr

◆ STAGING_CHRONY_CONFIG_FILE

std::string_view STAGING_CHRONY_CONFIG_FILE = "/tmp/chrony.conf"
staticconstexpr