Skip to content

Commit d2bb93c

Browse files
committed
chore: fix npm install, try and fix npm run build
1 parent e41a191 commit d2bb93c

File tree

7 files changed

+15725
-22249
lines changed

7 files changed

+15725
-22249
lines changed

docs/infrasec/ansible/ansible-primer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ remote-execution tool originally designed to orchestrate a wider environment, it
55
with things like Packer, which is where you are most likely to see it in a Truss environment.
66

77
This primer is not intended to replace the official documentation for Ansible, which can be found at
8-
<https://docs.ansible.com/ansible/latest/index.html>. It is only intended to provide a high-level overview and give you
8+
[https://docs.ansible.com/ansible/latest/index.html](https://docs.ansible.com/ansible/latest/index.html). It is only intended to provide a high-level overview and give you
99
an idea where to find more detailed resources.
1010

1111
## Setting up your environment
1212

1313
When working with Ansible, you’ll probably want to set up a virtual environment so that you can install ansible and any
1414
other Python modules necessary without contaminating your system Python installation. If you’ve never done this before,
15-
this tutorial should help: <https://www.pythonforbeginners.com/basics/how-to-use-python-virtualenv/>. If you're an
15+
this tutorial should help: [https://www.pythonforbeginners.com/basics/how-to-use-python-virtualenv/](https://www.pythonforbeginners.com/basics/how-to-use-python-virtualenv/). If you're an
1616
experienced Python programmer and want to use `pipenv` or another alternative, that's perfectly fine too. It is
1717
recommended that you use Python 3 as your Python binary.
1818

docs/infrasec/ansible/molecule-primer.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ experiences and resources you can use when adding testing to your own Ansible ro
77

88
These resources will likely come in handy when trying to get Molecule up and running for yourself:
99

10-
- Molecule Official Docs: <https://molecule.readthedocs.io/en/latest/>
10+
- Molecule Official Docs: [https://molecule.readthedocs.io/en/latest/](https://molecule.readthedocs.io/en/latest/)
1111
- Testing Your Ansible Roles with Molecule (Jeff Geerling):
12-
<https://www.jeffgeerling.com/blog/2018/testing-your-ansible-roles-molecule>
12+
[https://www.jeffgeerling.com/blog/2018/testing-your-ansible-roles-molecule](https://www.jeffgeerling.com/blog/2018/testing-your-ansible-roles-molecule)
1313
- Test-driven Infrastructure Development with Ansible and Molecule (Jonas Hecht):
14-
<https://blog.codecentric.de/en/2018/12/test-driven-infrastructure-ansible-molecule/>
14+
[https://blog.codecentric.de/en/2018/12/test-driven-infrastructure-ansible-molecule/](https://blog.codecentric.de/en/2018/12/test-driven-infrastructure-ansible-molecule/)
1515
- Continuous Cloud Infrastructure With Ansible, Molecule, and TravisCI on AWS (Jonas Hecht):
16-
<https://blog.codecentric.de/en/2019/01/ansible-molecule-travisci-aws/>
16+
[https://blog.codecentric.de/en/2019/01/ansible-molecule-travisci-aws/](https://blog.codecentric.de/en/2019/01/ansible-molecule-travisci-aws/)
1717

1818
## Setup
1919

@@ -46,7 +46,7 @@ for instance, and one with EC2). These commands both take a number of command li
4646
you’ll probably use is `--driver-name`: This tells molecule which driver to use for the scenario it is creating; by
4747
default this is docker, but this is where you would put ec2 or vagrant or whatever else if you wanted to test it another
4848
way. See the Molecule docs here for more information:
49-
<https://molecule.readthedocs.io/en/latest/configuration.html#driver>.
49+
[https://molecule.readthedocs.io/en/latest/configuration.html#driver](https://molecule.readthedocs.io/en/latest/configuration.html#driver).
5050

5151
## Configuration
5252

@@ -56,7 +56,7 @@ specify the different components you want to use like driver, linter, verifier,
5656
specify the AMI, instance type, and subnet. The Molecule driver docs above have more details on what can be set here.
5757

5858
Of special note is that for systemd-based docker images, you will need to use a few extra configuration options; the
59-
bottom of the docker driver docs (<https://molecule.readthedocs.io/en/latest/configuration.html#docker>) has more details.
59+
bottom of the docker driver docs ([https://molecule.readthedocs.io/en/latest/configuration.html#docker](https://molecule.readthedocs.io/en/latest/configuration.html#docker)) has more details.
6060
Since most modern Linux distributions use systemd, you’ll probably need to use this.
6161

6262
If you have other Ansible roles your role is dependent on, be sure to specify this in the `meta/main.yml` file in your
@@ -77,7 +77,7 @@ If this works, you know that at least the Molecule parts are working right.
7777
### Testing in EC2
7878

7979
With EC2, there a couple of other steps you’ll need to take. First, you’ll have to define an EC2_REGION environment
80-
variable like so (this is due to the error described here: <https://github.com/ansible/molecule/issues/1570>):
80+
variable like so (this is due to the error described here: [https://github.com/ansible/molecule/issues/1570](https://github.com/ansible/molecule/issues/1570)):
8181

8282
> `export EC2_REGION=”us-west-2”`
8383

@@ -117,7 +117,7 @@ instances so I could poke around in them when something wasn’t working.
117117
By default, Molecule is not testing anything other than the accuracy of your Ansible code -- is it written right and
118118
does it run without generating errors. This doesn’t tell you if it’s actually doing what you want it to, though. For
119119
that, you’ll need to write additional tests. By default, these use Test-Infra
120-
(<https://testinfra.readthedocs.io/en/latest/>); you’ll put these in the `molecule/scenario_name/tests` directory. You
120+
([https://testinfra.readthedocs.io/en/latest/](https://testinfra.readthedocs.io/en/latest/)); you’ll put these in the `molecule/scenario_name/tests` directory. You
121121
should see a `test_default.py` file there already; this test is an example that just makes sure the `/etc/hosts` file
122122
and root user exist, which is a bare minimum for things to actually work.
123123

docs/infrasec/aws/org-bootstrap.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ account. The purpose of this account is to handle root-level service
1919
control policies [(SCPs)](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html)
2020
and encompass the the organizational units (OUs) underneath. If you
2121
need to know how to create an AWS account, please see
22-
<https://aws.amazon.com/premiumsupport/knowledge-center/create-and-activate-aws-account/>.
22+
[https://aws.amazon.com/premiumsupport/knowledge-center/create-and-activate-aws-account/](https://aws.amazon.com/premiumsupport/knowledge-center/create-and-activate-aws-account/).
2323
You should set the alias for this account to your project's name and
2424
the `org-root` suffix, like `spacecats-org-root`.
2525

@@ -43,7 +43,7 @@ This needs to be done as the root user, so now is a good time.
4343

4444
## Bootstrap Terraform for org-root Account
4545

46-
Following the pattern in <https://github.com/trussworks/terraform-layout-example>,
46+
Following the pattern in [https://github.com/trussworks/terraform-layout-example](https://github.com/trussworks/terraform-layout-example),
4747
set up your infra Git repo that we created earlier. Name the directory for this
4848
account after the account alias as usual. Then, `cd` into this directory and
4949
checkout the bootstrap repo like so:

docs/infrasec/bootstrap.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ project. This will allow you to store things like passwords and MFA codes
6868
for AWS accounts, GitHub "robot" users, and anything else that you need
6969
to give members of the team access to.
7070

71-
You can create a new account by going to <https://1password.com> and
71+
You can create a new account by going to [https://1password.com](https://1password.com) and
7272
clicking on "sign in" in the upper right hand corner, and then instead
7373
of clicking on an existing account, click on "create a new account" at
7474
the bottom of the page, then click on "for my team" on the next page,
@@ -93,10 +93,10 @@ application to stand up yet, you should get this bootstrapped so that
9393
things are ready to go.
9494

9595
If you are starting from scratch, you will need to open a new AWS account
96-
by going to <https://aws.amazon.com> and creating an AWS account, using
96+
by going to [https://aws.amazon.com](https://aws.amazon.com) and creating an AWS account, using
9797
the Truss admin card as the billing information. This account will be your
9898
`org-root` account that will start your
99-
[AWS Organization](./aws/aws-organizations.md). Once that is created, you
99+
[AWS Organization](aws-organizations.md). Once that is created, you
100100
should bootstrap Terraform in it and set up the `admin-global` namespace.
101101
Things you will want to set up in the `org-root` account:
102102

docs/infrasec/certs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ one-off certificates. Their documentation is
8080

8181
## External resources
8282

83-
- How an SSL/TLS handshake works: <https://www.ssl.com/article/ssl-tls-handshake-overview/>
83+
- How an SSL/TLS handshake works: [https://www.ssl.com/article/ssl-tls-handshake-overview/](https://www.ssl.com/article/ssl-tls-handshake-overview/)

0 commit comments

Comments
 (0)