Skip to content

Commit fa071d6

Browse files
tkam80xHiteshPatel
authored andcommitted
class2 fixes (#170)
* Class2 errata mod2lab1: and a automated Test Framework. > and an automated test framework. closed an relaunched. > closed and relaunched. To utilize the helper functions the framework includes > To utilize the helper functions included in the framework mod2lab2: fix image for selecting the environment mod2lab4: If you need to launch the container once more, follow the instructions in this previous lab and log in as snops. mod2lab5: to the the 1_Authenticate > to the 1_Authenticate > mod3lab2: #. The above f5-newman-wrapper <--fix indentation Delete any virtual servers or Pools that appear in the GUI. <--add to be more explicit mod3lab3: f5-newman-build-3 contains > f5-newman-build-4 contains mod4mod4: if it’s not please refer to Class 2 Module 2 on starting the service. > if it’s not please refer to Class 2 Module 1 Lab 2 on starting the service. mod4lab1: minor edits to Slack explanation mod4lab2: Once the Job is saved, <---fix indentation Highlight over the third Stage to prompt for the Approval <---fix indentation Repeat steps 2 & 3 of the last module, <--Repeats steps 2 & 3 of the previous task to create 2 new Jenkins jobs, mod4lab3 Destruction of an Application Services is > Destruction of Application Services is Repeat steps 2 & 3 of the first module > Repeat steps 2 & 3 of task 1 in the previous lab if you have extra time > If you have extra time * trying to fix indentation and numbered lists
1 parent 3786447 commit fa071d6

File tree

12 files changed

+166
-162
lines changed

12 files changed

+166
-162
lines changed
671 Bytes
Loading
-2.92 KB
Loading

docs/class2/module2/lab1.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Task 1 - Import the f5-postman-workflows Postman Collection
1515
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1616

1717
In this task you will Import a Postman Collection that contains Installation
18-
helpers, Examples and a automated Test Framework. The collection is installed
18+
helpers, Examples and an automated Test Framework. The collection is installed
1919
from the f5-postman-workflows GitHub repository.
2020

2121
Perform the following steps to complete this task:
@@ -29,12 +29,12 @@ Perform the following steps to complete this task:
2929

3030
#. You should now see a collection named ``F5_Postman_Workflows`` in your
3131
Postman Collections sidebar, in some cases the Collections don't appear until Postman
32-
has been closed an relaunched.
32+
has been closed and relaunched.
3333

3434
Task 2 - Install f5-postman-workflows into your Postman Client
3535
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3636

37-
To utilize the helper functions the framework includes, we must install those
37+
To utilize the helper functions included in the framework, we must install those
3838
functions into the Postman Client. The installation helpers perform the
3939
following tasks:
4040

docs/class2/module2/lab4.rst

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Task 1 - Run a f5-newman-wrapper Workflow
1717
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1818

1919
#. Return to, or open an SSH session as described in the :ref:`previous lab <lab1_3_1>`
20+
If you need to launch the container once more, follow the instructions in this :ref:`previous lab <lab1_2_1>`
21+
and log in as snops
2022
#. Run ``cd f5-postman-workflows/local``
2123
#. Run ``cp ../workflows/Wrapper_Demo_1.json .``
2224
#. Edit the ``Wrapper_Demo_1.json`` file with ``vim`` and enter the ``10.1.1.10`` for

docs/class2/module2/lab5.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ diagram:
4949
5050
To implement this workflow we need to consider how Input Variables are passed
5151
to each item in the workflow. Previously, we saw that the following variables
52-
are required to the the ``1_Authenticate`` folder in the
52+
are required to the ``1_Authenticate`` folder in the
5353
``BIGIP_API_Authentication`` collection:
5454

5555
- ``bigip_mgmt``

docs/class2/module3/lab2.rst

+98-98
Original file line numberDiff line numberDiff line change
@@ -31,118 +31,118 @@ Task 1 - Examine f5-newman-build-1
3131
#. Navigate to the location containing the f5-newman-wrapper files ``cd ~/f5-automation-labs/jenkins/f5-newman-build``
3232
#. Let's examine the contents of the first f5-newman-wrapper file ``cat f5-newman-build-1``
3333

34-
.. code-block:: console
35-
:linenos:
36-
37-
{
38-
"name":"f5-newman-build-1",
39-
"description":"Execute a chained workflow that authenticates to a BIG-IP and builds configuration",
40-
"globalEnvVars":"/home/snops/f5-postman-workflows/framework/f5-postman-workflows.postman_globals.json",
41-
"globalOptions": {
42-
"insecure":true,
43-
"reporters":["cli"]
44-
},
45-
"globalVars": {
46-
"bigip_mgmt": "10.1.1.10",
47-
"bigip_username":"admin",
48-
"bigip_password":"admin",
49-
"bigip_partition":"Common",
50-
"bigip_pool_name":"module_3_pool",
51-
"bigip_pool_member":"75.67.228.133:80",
52-
"bigip_object_state":"user-up",
53-
"bigip_object_session":"user-enabled",
54-
"bigip_vs_name":"module_3_vs",
55-
"bigip_vs_destination":"10.1.20.129:80",
56-
"bigip_node_name":"75.67.228.133",
57-
"bigip_http_monitor":"module_3_http_monitor",
58-
"bigip_http_profile":"module_3_http",
59-
"bigip_tcp_profile":"module_3_tcp_clientside"
60-
},
61-
"workflow": [
62-
{
63-
"name":"Authenticate to BIG-IP",
64-
"options": {
65-
"collection":"/home/snops/f5-postman-workflows/collections/BIG_IP/BIGIP_API_Authentication.postman_collection.json",
66-
"folder":"1_Authenticate"
67-
}
68-
}, (REMOVE THIS TEXT AND ADD YOUR CODE BELOW)
69-
70-
}
71-
]
72-
}
34+
.. code-block:: console
35+
:linenos:
36+
37+
{
38+
"name":"f5-newman-build-1",
39+
"description":"Execute a chained workflow that authenticates to a BIG-IP and builds configuration",
40+
"globalEnvVars":"/home/snops/f5-postman-workflows/framework/f5-postman-workflows.postman_globals.json",
41+
"globalOptions": {
42+
"insecure":true,
43+
"reporters":["cli"]
44+
},
45+
"globalVars": {
46+
"bigip_mgmt": "10.1.1.10",
47+
"bigip_username":"admin",
48+
"bigip_password":"admin",
49+
"bigip_partition":"Common",
50+
"bigip_pool_name":"module_3_pool",
51+
"bigip_pool_member":"75.67.228.133:80",
52+
"bigip_object_state":"user-up",
53+
"bigip_object_session":"user-enabled",
54+
"bigip_vs_name":"module_3_vs",
55+
"bigip_vs_destination":"10.1.20.129:80",
56+
"bigip_node_name":"75.67.228.133",
57+
"bigip_http_monitor":"module_3_http_monitor",
58+
"bigip_http_profile":"module_3_http",
59+
"bigip_tcp_profile":"module_3_tcp_clientside"
60+
},
61+
"workflow": [
62+
{
63+
"name":"Authenticate to BIG-IP",
64+
"options": {
65+
"collection":"/home/snops/f5-postman-workflows/collections/BIG_IP/BIGIP_API_Authentication.postman_collection.json",
66+
"folder":"1_Authenticate"
67+
}
68+
}, (REMOVE THIS TEXT AND ADD YOUR CODE BELOW)
69+
70+
}
71+
]
72+
}
7373
7474
7575
#. The above f5-newman-wrapper file only has the ``Authenticate to BIG-IP`` Collection/Folder referenced, **we will need to add in another collection**.
76-
You are going to add this code snippet after the last ``},``. This shows the method for chaining together multiple calls from multiple sources, shown in a previous lab.
77-
For editing files VIM/VI is installed on the container, if you **do not know** how to use VIM/VI please let the instructor know.
76+
You are going to add this code snippet after the last ``},``. This shows the method for chaining together multiple calls from multiple sources, shown in a previous lab.
77+
For editing files VIM/VI is installed on the container, if you **do not know** how to use VIM/VI please let the instructor know.
7878

79-
.. code-block:: json
80-
:linenos:
79+
.. code-block:: json
80+
:linenos:
8181
82-
{
83-
"name":"1 - Build a Basic LTM Config",
84-
"skip":false,
85-
"options": {
86-
"collection":"/home/snops/f5-automation-labs/postman_collections/f5-programmability-class-2.postman_collection.json",
87-
"folder":"1 - Build a Basic LTM Config"
88-
}
82+
{
83+
"name":"1 - Build a Basic LTM Config",
84+
"skip":false,
85+
"options": {
86+
"collection":"/home/snops/f5-automation-labs/postman_collections/f5-programmability-class-2.postman_collection.json",
87+
"folder":"1 - Build a Basic LTM Config"
88+
}
8989
9090
9191
#. Now that you have the full file you can see what it will look like with ``cat f5-newman-build-1``. The environment variables will float into both Collections, and the returned Global Variables will persist during the whole run.
9292
93-
Example of a complete file:
94-
95-
.. code-block:: json
96-
:linenos:
97-
98-
{
99-
"name":"f5-newman-build-1",
100-
"description":"Execute a chained workflow that authenticates to a BIG-IP and builds configuration",
101-
"globalEnvVars":"/home/snops/f5-postman-workflows/framework/f5-postman-workflows.postman_globals.json",
102-
"globalOptions": {
103-
"insecure":true,
104-
"reporters":["cli"]
105-
},
106-
"globalVars": {
107-
"bigip_mgmt": "10.1.1.10",
108-
"bigip_username":"admin",
109-
"bigip_password":"admin",
110-
"bigip_partition":"Common",
111-
"bigip_pool_name":"module_3_pool",
112-
"bigip_pool_member":"75.67.228.133:80",
113-
"bigip_object_state":"user-up",
114-
"bigip_object_session":"user-enabled",
115-
"bigip_vs_name":"module_3_vs",
116-
"bigip_vs_destination":"10.1.20.129:80",
117-
"bigip_node_name":"75.67.228.133",
118-
"bigip_http_monitor":"module_3_http_monitor",
119-
"bigip_http_profile":"module_3_http",
120-
"bigip_tcp_profile":"module_3_tcp_clientside"
121-
},
122-
"workflow": [
123-
{
124-
"name":"Authenticate to BIG-IP",
125-
"options": {
126-
"collection":"/home/snops/f5-postman-workflows/collections/BIG_IP/BIGIP_API_Authentication.postman_collection.json",
127-
"folder":"1_Authenticate"
128-
}
129-
},
130-
{
131-
"name":"1 - Build a Basic LTM Config",
132-
"skip":false,
133-
"options": {
134-
"collection":"/home/snops/f5-automation-labs/postman_collections/f5-programmability-class-2.postman_collection.json",
135-
"folder":"1 - Build a Basic LTM Config"
136-
}
137-
}
138-
]
139-
}
93+
Example of a complete file:
94+
95+
.. code-block:: json
96+
:linenos:
97+
98+
{
99+
"name":"f5-newman-build-1",
100+
"description":"Execute a chained workflow that authenticates to a BIG-IP and builds configuration",
101+
"globalEnvVars":"/home/snops/f5-postman-workflows/framework/f5-postman-workflows.postman_globals.json",
102+
"globalOptions": {
103+
"insecure":true,
104+
"reporters":["cli"]
105+
},
106+
"globalVars": {
107+
"bigip_mgmt": "10.1.1.10",
108+
"bigip_username":"admin",
109+
"bigip_password":"admin",
110+
"bigip_partition":"Common",
111+
"bigip_pool_name":"module_3_pool",
112+
"bigip_pool_member":"75.67.228.133:80",
113+
"bigip_object_state":"user-up",
114+
"bigip_object_session":"user-enabled",
115+
"bigip_vs_name":"module_3_vs",
116+
"bigip_vs_destination":"10.1.20.129:80",
117+
"bigip_node_name":"75.67.228.133",
118+
"bigip_http_monitor":"module_3_http_monitor",
119+
"bigip_http_profile":"module_3_http",
120+
"bigip_tcp_profile":"module_3_tcp_clientside"
121+
},
122+
"workflow": [
123+
{
124+
"name":"Authenticate to BIG-IP",
125+
"options": {
126+
"collection":"/home/snops/f5-postman-workflows/collections/BIG_IP/BIGIP_API_Authentication.postman_collection.json",
127+
"folder":"1_Authenticate"
128+
}
129+
},
130+
{
131+
"name":"1 - Build a Basic LTM Config",
132+
"skip":false,
133+
"options": {
134+
"collection":"/home/snops/f5-automation-labs/postman_collections/f5-programmability-class-2.postman_collection.json",
135+
"folder":"1 - Build a Basic LTM Config"
136+
}
137+
}
138+
]
139+
}
140140
141141
142142
Task 2 - Execute the first f5-newman-wrapper file
143143
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
144144
145-
#. Login to your BIG-IP lab machine and verify you do not have any Virtual Servers or Pools
145+
#. Login to your BIG-IP lab machine and verify you do not have any Virtual Servers or Pools. Delete any virtual servers or Pools that appear in the GUI.
146146
147147
.. NOTE:: If you are using the F5 lab systems there are already shortcuts in your Chrome browser called ``BIG-IP A GUI``, if you receive a certificate warning accept and add exception (the BIG-IP has a self-signed cert which violates Chrome's security). BIG-IP A Login credentials are ``admin\admin``
148148

docs/class2/module3/lab3.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Task 2 - Execute f5-newman-build-4
129129

130130
|lab-3-2|
131131

132-
#. ``f5-newman-build-3`` contains calls to **user-up** variable node ``"bigip_pool_member":"10.1.10.101:8002"``
132+
#. ``f5-newman-build-4`` contains calls to **user-up** variable node ``"bigip_pool_member":"10.1.10.101:8002"``
133133

134134
Execute: ``f5-newman-wrapper f5-newman-build-4``
135135

docs/class2/module3/lab4.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. |labmodule| replace:: 3
2-
.. |labnum| replace:: 3
2+
.. |labnum| replace:: 4
33
.. |labdot| replace:: |labmodule|\ .\ |labnum|
44
.. |labund| replace:: |labmodule|\ _\ |labnum|
55
.. |labname| replace:: Lab\ |labdot|

docs/class2/module4/lab1.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ Our installation also has some Slack calls. Which we will setup next.
101101
Task 2 - Accessing Jenkins and Installing the Slack-Notifier Plug-in
102102
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
103103

104-
Slack is a ChatOps toolkit, think of Skype, Teams, Messenger, or IIRC! Except Slack also has the ability to take in
105-
bots. slackbots are used to interact with services, they might query for something when asked, or
104+
Slack is a ChatOps toolkit, similar to Skype, Teams, Messenger, or IIRC! Except Slack also has the ability to take in
105+
bots. Slackbots are used to interact with services. They might query for something when asked, or
106106
give you information when they notice something. In our case our Jenkins Pipeline file will use Slack
107-
to notify all of us when an action happens, collaborative teamwork.
107+
to notify all of us when an action happens, enabling collaborative teamwork.
108108

109109
.. NOTE:: In the Jenkins Files, the ``message`` piece is sent to the Slack channel, if you would like to modify your messages for our lab **change the text!**
110110

0 commit comments

Comments
 (0)