Module Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad NameLoad Assign NameStore NameLoad Assign NameStore Num Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr BinOpBitOr Call NameLoad keyword Call NameLoad Str Call NameLoad keyword NameLoad Call NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Dict Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str If AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str BinOpAdd NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A os N/A shutil N/A sys django.db.models F Q services.openvpn.models OpenVPNService OpenVPNTenant synchronizers.base.SyncInstanceUsingAnsible SyncInstanceUsingAnsible N/A parentdir N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ .. N/A N/A N/A N/A sys path insert 0 parentdir SyncOpenVPNTenant N/A SyncInstanceUsingAnsible N/A N/A Class for syncing a OpenVPNTenant using Ansible.

    This SyncStep creates any necessary files for the OpenVPNTenant using ESAY RSA and then runs the
    Ansible template to start the server on an instance.
     N/A provides N/A OpenVPNTenant N/A observes OpenVPNTenant N/A requested_interval 0 N/A template_name sync_openvpntenant.yaml N/A service_key_name /opt/xos/synchronizers/openvpn/openvpn_private_key fetch_pending N/A N/A self deleted N/A N/A N/A N/A deleted N/A N/A objs N/A N/A N/A N/A OpenVPNTenant get_tenant_objects filter N/A N/A Q enacted__lt N/A F updated N/A Q enacted None N/A Q lazy_blocked False N/A N/A objs N/A N/A OpenVPNTenant get_deleted_tenant_objects N/A objs N/A get_extra_attributes N/A N/A self tenant N/A N/A N/A N/A is_persistent vpn_subnet server_network clients_can_see_each_other port_number protocol pki_dir N/A tenant is_persistent N/A tenant vpn_subnet N/A tenant server_network N/A tenant clients_can_see_each_other N/A tenant port_number N/A tenant protocol N/A N/A OpenVPNService get_pki_dir tenant N/A sync_fields N/A N/A self o fields N/A N/A N/A pki_dir N/A N/A OpenVPNService get_pki_dir o N/A N/A N/A N/A N/A os path isdir pki_dir N/A N/A N/A N/A OpenVPNService execute_easyrsa_command pki_dir init-pki N/A N/A N/A OpenVPNService execute_easyrsa_command pki_dir --req-cn=XOS build-ca nopass N/A N/A o use_ca_from_id N/A N/A tenant N/A N/A N/A N/A N/A OpenVPNTenant get_tenant_objects filter pk N/A o use_ca_from_id N/A 0 N/A other_pki_dir N/A N/A OpenVPNService get_pki_dir tenant N/A N/A N/A shutil copy2 N/A other_pki_dir /ca.crt pki_dir N/A N/A N/A shutil copy2 N/A other_pki_dir /private/ca.key N/A pki_dir /private N/A N/A N/A N/A N/A os path isfile N/A pki_dir /issued/server.crt N/A N/A N/A N/A OpenVPNService execute_easyrsa_command pki_dir build-server-full server nopass N/A N/A N/A OpenVPNService execute_easyrsa_command pki_dir gen-dh N/A N/A N/A OpenVPNService execute_easyrsa_command pki_dir gen-crl N/A N/A N/A N/A super SyncOpenVPNTenant self sync_fields o fields N/A N/A