Skip to content

Instantly share code, notes, and snippets.

View Elethiomel's full-sized avatar

Colin Fowler Elethiomel

View GitHub Profile
@Elethiomel
Elethiomel / ssl-check.py
Created May 14, 2019 16:29 — forked from gdamjan/ssl-check.py
Python script to check on SSL certificates
# -*- encoding: utf-8 -*-
# requires a recent enough python with idna support in socket
# pyopenssl, cryptography and idna
from OpenSSL import SSL
from cryptography import x509
from cryptography.x509.oid import NameOID
import idna
from socket import socket
{%- for key, value in salt['pillar.get']('rocketchat_settings').iteritems() %}
rocketchat_setting_{{key}}:
module.run:
- name: mongodb.update_one
{%- if value == True %}
- objects: '{"_id": "{{key}}"} {"value": true}'
{%- elif value == False %}
- objects: '{"_id": "{{key}}"} {"value": false}'
{%- else %}
{%- for key, value in salt['pillar.get']('rocketchat_settings').iteritems() %} │:46.087Z"), "value" : true, "meteorSettingsValue" : "true" }
rocketchat_setting_{{key}}: │rocketchat:PRIMARY> db.rocketchat_settings.find({"_id":"LDAP_Enable"})
module.run: │{ "_id" : "LDAP_Enable", "type" : "boolean", "public" : true, "group" : "LDAP", "packageValue" : false, "valueSource" : "meteorSettings
- name: mongodb.update_one │Value", "hidden" : false, "blocked" : false, "sorter" : 0, "i18nLabel" : "LDAP_Enable", "i18nDescription" : "LDAP_Enable_Description",
- objects: '{"_id": "{{key}}"} {"value": {{value}}}'