pmcf
v3.18.7
Published
Poor mans configuration management
Maintainers
Readme
pmcf
Poor mans configuration management
Generates system packages from config blueprint.
supported linux derivates:
- arch linux
- debian
- rpm based systems
generates config packages for:
- systemd
- networkd
- timesyncd
- resolverd
- kea
- bind
- mosquitto
- influxdb
- iwd
- chrony
API
Table of Contents
- Base
- PortEndpoint
- HTTPEndpoint
- SkeletonNetworkInterface
- NetworkAddress
- addresses
- cidrAddresses
- serviceEndpoints
- sectionLines
- asArray
- asIterator
Base
Parameters
ownerdata
extends
Returns Iterable<Base>
findService
Parameters
filterany
Returns any service with the highest priority
PortEndpoint
Extends BaseEndpoint
Endpoint with an ip port
Parameters
servicedata
port
Returns number
socketAddress
Returns string
HTTPEndpoint
Extends BaseEndpoint
Endpoint based on http
Parameters
serviceaddressdata
port
Returns number
SkeletonNetworkInterface
Extends ServiceOwner
networkAddresses
Parameters
filterObject (optional, defaultn=>true)
Returns Iterable<NetworkAddress>
NetworkAddress
Parameters
networkInterfaceNetworkInterfaceaddress(string | Uint8Array | Uint16Array)subnetSubnet
subnet
Type: Subnet
networkInterface
Type: NetworkInterface
address
Type: (string | Uint8Array | Uint16Array)
addresses
Parameters
Returns Iterable<string> addresses
cidrAddresses
Parameters
networkAddressesArray<NetworkAddress>
serviceEndpoints
Parameters
sourcesanyoptionsObject? (optional, default{})
Returns (string | any)
sectionLines
Parameters
asArray
Parameters
valueany
Returns Array<any>
asIterator
Parameters
valueany
Returns Iterable<any>
install
With npm do:
npm install pmcf