- Head over to trystack.org then join the facebook group to get your invite.
- When you get the
(Somebody) approved your request to join the group TryStack
notification, go login to trystack (clicklogin using facebook
and approve with facebook). - Click the
Security Groups
tab, clickEdit Rules
, and add a couple rules:- imcp, from port: -1, to port: -1, cidr: 0.0.0.0/0
- tcp, from port: 22, to port: 22, cidr: your.ip.address.here/32
- Click the
Keypairs
tab, then clickAdd New Keypair
, name ittrystack
. A file will download to your computer. - Click the
Images
tab, then clickLaunch
next to one of the images. Fill out the form and make sure to selecttrystack
as yourKey Name
and includedefault
in theSecurity Groups
. Clicklaunch instance
. Note the IP address you are assigned.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cloudComputing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using /etc/ansible/ansible.cfg as config file | |
[WARNING]: provided hosts list is empty, only localhost is available | |
Loaded callback default of type stdout, v2.0 | |
PLAYBOOK: pluck_os.yml ********************************************************* | |
1 plays in pluck_os.yml | |
PLAY [test the os_server module on async] ************************************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Performs NMAP Scan(s) and tests SSH Connections (If desired) | |
""" | |
import argparse | |
import json | |
import socket | |
import nmap | |
import paramiko |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@a778111483a5 atomic-host-tests]# ansible-playbook -vvvv -i /tmp/general_1node.inv tests/openshift-ansible-test/main | |
.yml | |
No config file found; using defaults | |
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc | |
PLAYBOOK: main.yml ************************************************************* | |
1 plays in tests/openshift-ansible-test/main.yml | |
PLAY [OpenShift Ansible Installer Test] **************************************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def wrap(pre, post): | |
def decorate(func): | |
def call(*args, **kwargs): | |
pre(func, *args, **kwargs) | |
result = func(*args, **kwargs) | |
post(func, *args, **kwargs) | |
return result | |
return call | |
return decorate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node { | |
echo 'Hello World' | |
timestamps { | |
// Just some echoes to show the timestamps. | |
stage "First echo" | |
echo "Hey, look, I'm echoing with a timestamp!" | |
// A sleep to make sure we actually get a real difference! | |
stage "Sleeping" | |
sleep 30 |
LinchPin has automated testing from PR's (Pull Requests) in GitHub. Whenever a PR is updated or the trigger phrase '[test]' is included in the comment a set of tests will be kicked off. These tests are orchestrated via jenkins in the Centos CI openshift environment.
The point of these tests is to verify that LinchPin works correctly in a variety of different environments. We currently exercise current releases of both Centos and Fedora. On those distros we test the following targets: dummy, duffy, aws and libvirt. We are continuing to expand this.
These distros are provided as containers which are deployed inside the openshift environment.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: BuildConfig | |
metadata: | |
name: mycustompipeline | |
namespace: minishift-demo | |
labels: | |
name: mycustompipeline | |
spec: | |
triggers: | |
- type: ConfigChange |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> You need to have cluster adimin privilages | |
### edit scc | |
```sh | |
oc edit scc restricted | |
or | |
oc edit scc restricted --config=/openshift.local.config/master/admin.kubeconfig | |
``` | |
> Change runAsUser type to RunAsAny |
OlderNewer