mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-23 00:25:18 +00:00
Trigger nmcli con reload
after config file creation
This commit is contained in:
parent
b3a45cf2ab
commit
e2f7c8d1d6
@ -258,11 +258,12 @@ def certidude_request(fork):
|
||||
with open(os.path.join("/etc/NetworkManager/system-connections", endpoint), "w") as fh:
|
||||
nm_config.write(fh)
|
||||
click.echo("Created %s" % fh.name)
|
||||
os.system("nmcli con reload")
|
||||
continue
|
||||
|
||||
|
||||
# IPSec set up with NetworkManager
|
||||
if service_config.get(endpoint, "service") == "network-manager/strongswan":
|
||||
elif service_config.get(endpoint, "service") == "network-manager/strongswan":
|
||||
client_config = ConfigParser()
|
||||
nm_config.add_section("connection")
|
||||
nm_config.set("connection", "id", endpoint)
|
||||
@ -293,6 +294,7 @@ def certidude_request(fork):
|
||||
with open(os.path.join("/etc/NetworkManager/system-connections", endpoint), "w") as fh:
|
||||
nm_config.write(fh)
|
||||
click.echo("Created %s" % fh.name)
|
||||
os.system("nmcli con reload")
|
||||
continue
|
||||
|
||||
# TODO: Puppet, OpenLDAP, <insert awesomeness here>
|
||||
|
Loading…
Reference in New Issue
Block a user