Reengineed the code. Generalized the package. Cloud configurators are modules.
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/python3
|
||||
"""Render configuration files and provision PKI from vpn-router.conf.
|
||||
|
||||
Run directly to regenerate the configuration files without touching the
|
||||
running system. 'setup' calls the same code before applying the rest.
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
|
||||
|
||||
import vpnrouter
|
||||
|
||||
|
||||
def main():
|
||||
vpnrouter.configure()
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
Reference in New Issue
Block a user