Powershell group export
I needed to get a list of people in som AD group for an audit so I wrote a quick script to export each group matching my filter to a CSV-file and populate it with name and samaccountname. Setting s...
I needed to get a list of people in som AD group for an audit so I wrote a quick script to export each group matching my filter to a CSV-file and populate it with name and samaccountname. Setting s...
This is the second part in how you can setup Vmware inventory in AWX based on VM tags. Link to first part. Create a file that ends with vmware.yml or vmware.yaml. For example invent. I called my f...
New to AWX and I had a goal to setup Vcenter as an inventory source with groups based on vmware tags. I got that setup working with ansible and started to investigate how to achieve same result in ...
In order to create your Ansible groups based on vmware tags you need to create a inventory file and name it to something.vmware.yaml. Also make sure to enable vmware inventory plugin in ansible.cf...
Sometimes you need to add users or groups in local Administrators group on a windows server. This function helps to accomplish that on one or more servers. Load a text- or csv-file and pipe it to A...
For internal billing purpose I needed a way list all Windows VMs for a given subsidiary and their CPU and memory configuration. Connect-VIServer -Server vcenter.corp.lan $var = get-vm -location S...
A fast way to import multiple DHCP scopes to a DHCP server. Some settings needs to be added on top level. For example DNS servers. Required header in CSV: name;description;startrange;endrange;subn...
If you are unable to login to you cluster but still have access over SSH for example. Run this command to bypass cloudctl login. kubectl --kubeconfig /etc/cfc/conf/admin.kubeconfig get pods --all-...
Example code to create a secret in namespace lab containing a certificate to be used with an ingress for example. kubectl -n lab create secret tls tls-icp-cert-com --cert=cert.pem --key=cert.key
If you want to use docker containers in your regular LAN subnet you need to setup a new Docker network with macvlan driver. First create your Docker network. -- ip-range specifies all addresses th...