knox / Kubespray-readme-5.sh
0 likes
0 forks
1 files
Last active
1 | vagrant up |
knox / Kubespray-readme-4.sh
0 likes
0 forks
1 files
Last active
1 | python -V && pip -V |
knox / Kubespray-readme-3.sh
0 likes
0 forks
1 files
Last active
1 | git checkout v2.26.0 |
2 | docker pull quay.io/kubespray/kubespray:v2.26.0 |
3 | docker run --rm -it --mount type=bind,source="$(pwd)"/inventory/sample,dst=/inventory \ |
4 | --mount type=bind,source="${HOME}"/.ssh/id_rsa,dst=/root/.ssh/id_rsa \ |
5 | quay.io/kubespray/kubespray:v2.26.0 bash |
6 | # Inside the container you may now run the kubespray playbooks: |
7 | ansible-playbook -i /inventory/inventory.ini --private-key /root/.ssh/id_rsa cluster.yml |
knox / Kubespray-readme-2.sh
0 likes
0 forks
1 files
Last active
1 | ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path. |
knox / Kubespray-readme-1.sh
0 likes
0 forks
1 files
Last active
1 | # Copy ``inventory/sample`` as ``inventory/mycluster`` |
2 | cp -rfp inventory/sample inventory/mycluster |
3 | |
4 | # Update Ansible inventory file with inventory builder |
5 | declare -a IPS=(10.10.1.3 10.10.1.4 10.10.1.5) |
6 | CONFIG_FILE=inventory/mycluster/hosts.yaml python3 contrib/inventory_builder/inventory.py ${IPS[@]} |
7 | |
8 | # Review and change parameters under ``inventory/mycluster/group_vars`` |
9 | cat inventory/mycluster/group_vars/all/all.yml |
10 | cat inventory/mycluster/group_vars/k8s_cluster/k8s-cluster.yml |
knox / PHPMailer-2.sh
0 likes
0 forks
1 files
Last active
1 | git remote set-url upstream https://github.com/PHPMailer/PHPMailer.git |
knox / PHPMailer-3.php
0 likes
0 forks
1 files
Last active
1 | //To load the French version |
2 | $mail->setLanguage('fr', '/optional/path/to/language/directory/'); |
knox / PHPMailer-2.php
0 likes
0 forks
1 files
Last active
1 | <?php |
2 | //Import PHPMailer classes into the global namespace |
3 | //These must be at the top of your script, not inside a function |
4 | use PHPMailer\PHPMailer\PHPMailer; |
5 | use PHPMailer\PHPMailer\SMTP; |
6 | use PHPMailer\PHPMailer\Exception; |
7 | |
8 | //Load Composer's autoloader |
9 | require 'vendor/autoload.php'; |
knox / PHPMailer-1.php
0 likes
0 forks
1 files
Last active
1 | <?php |
2 | use PHPMailer\PHPMailer\PHPMailer; |
3 | use PHPMailer\PHPMailer\Exception; |
4 | |
5 | require 'path/to/PHPMailer/src/Exception.php'; |
6 | require 'path/to/PHPMailer/src/PHPMailer.php'; |
7 | require 'path/to/PHPMailer/src/SMTP.php'; |
knox / PHPMailer-1.sh
0 likes
0 forks
1 files
Last active
1 | composer require phpmailer/phpmailer |