You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LINUX.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,8 +51,6 @@ There will be copying and pasting of terminal commands in this Setup Guide. Ther
51
51
52
52
Let's start :rocket:
53
53
54
-
---
55
-
56
54
# Part 1: Local Setup
57
55
58
56
@@ -586,7 +584,7 @@ Terraform is telling you what it will create:
586
584
- A compute engine instance
587
585
- A static external IP address
588
586
589
-
**❗ If you have any errors, read the error and debug. If you need some help, raise a ticket with a teacher. ❗**
587
+
**❗ If you have any errors, read the error and debug. If you are unsure, raise a ticket with a teacher. ❗**
590
588
591
589
If everything was successful, create your VM with:
592
590
@@ -658,13 +656,13 @@ Notice the connection in the very bottom-left corner of your VS Code window. It
658
656
If you want to view your SSH configuration:
659
657
1. Start by clicking the symbol in the bottom-left corner of VS Code
660
658
2. Click on **Connect to Host...**
661
-
3. Click on **Configure SSH Hosts...***
659
+
3. Click on **Configure SSH Hosts...**
662
660
4. Select the configuration file. Usually the file at the top of the list.
663
661
5. View your configuration file! You may need to edit this configuration if you change computers, or want to work on more than one computer during the bootcamp.
664
662
665
663
</details>
666
664
667
-
Congratulations, the setup of you local laptop is complete 🎉 We just need to fine tune your Virtual Machine 🪛
665
+
Congratulations, the setup of you local computer is complete 🎉 We just need to fine tune your Virtual Machine 🪛
668
666
669
667
---
670
668
@@ -793,7 +791,7 @@ cd ~/vm-ansible-setup && ansible-playbook playbooks/setup_vm_part1.yml
793
791
794
792
And the playbook should start running!
795
793
796
-
❗ If an errors occur, raise a ticket with a teacher. The ansible playbooks are designed so that they can be run again, and again, and again and only make the changes that are required.
794
+
❗ If an errors occur, raise a ticket with a teacher. The ansible playbooks are designed so that they can be run again, and again, and again and only make the changes that are required (a cool concept called _Idempotency_ that you'll learn about later 😉).
797
795
798
796
### What is the playbook installing?
799
797
@@ -810,7 +808,7 @@ While this playbook is running, lets go through what is being installed and conf
810
808
811
809
The playbook is also running checks to see if things are installed or not. This is so you can safely re-run the playbook without any problems.
812
810
813
-
💡 Curious about how Ansible playbooks are defined, take a look at the playbook being run at this [link here 🔗](https://github.com/lewagon/data-engineering-setup/blob/main-automation/automation/vm-ansible-setup/playbooks/setup_vm_part1.yml)
811
+
💡 Curious about how Ansible playbooks are defined, take a look at the playbooks' source code at this [link here 🔗](https://github.com/lewagon/data-engineering-setup/blob/main-automation/automation/vm-ansible-setup/playbooks/setup_vm_part1.yml). You might not understand exactly what is happening, but should be able to identify the different tasks.
814
812
815
813
816
814
## GitHub CLI
@@ -883,7 +881,7 @@ Open a ticket with a TA and do one of the following:
883
881
- Compare your existing dotfiles with the current Le Wagon [dotfiles 🔗](https://github.com/lewagon/dotfiles), particularly the `.zshrc` and `settings.json` - if there is no meaningful difference, continue with the setup.
884
882
- If you are OK with losing your existing dotfiles - delete your existing dotfiles repository on GitHub and continue with the setup
885
883
- If you do not want to lose your existing dotfiles, we recommend working with branches:
886
-
- On your **laptop**, or wherever you have a **local** copy of **your** copy of dotfiles
884
+
- On your **laptop**, or wherever you have a **local** copy of **your existing version of dotfiles**
887
885
- Create a branch of your existing dotfiles setup, and push to GitHub - `origin <branchname>`
888
886
- On `local main` (or a new named branch), pull from `upstream main`, resolve any conflicts, commit, and push. It is important that you accept incoming changes to the `.zshrc` and `settings.json` files
889
887
- Continue with the setup
@@ -968,7 +966,11 @@ cd ~/vm-ansible-setup && ansible-playbook playbooks/setup_vm_part2.yml
968
966
969
967
And the playbook should start running! If you're asked if you want VS Code to behave more like Sublime Text, click accept.
970
968
971
-
❗ If any errors occur, raise a ticket with a teacher. You can safely run the playbook again.
969
+
❗ **If you created a password for your GitHub SSH key**
970
+
- You may be asked to type in your password during the playbook run
971
+
- The task: **Clone data-engineering-challenges from your GitHub to VM** will fail. This is OK and expected with how SSH keys work and how the playbooks are modifying your configuration. To resolve, in your terminal run: `exec zsh`, and then re-run the playbook.
972
+
973
+
❗ If any other errors occur, or your are unsure, raise a ticket with a teacher. You can safely run the playbook again and again. Generally, if the playbook runs from start to finish with no errors, everything should be good!
Copy file name to clipboardExpand all lines: WINDOWS.md
+62-10Lines changed: 62 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,8 +51,6 @@ There will be copying and pasting of terminal commands in this Setup Guide. Ther
51
51
52
52
Let's start :rocket:
53
53
54
-
---
55
-
56
54
# Part 1: Local Setup
57
55
58
56
@@ -485,7 +483,7 @@ We'll need to change some values in this file. Here's were you can find the requ
485
483
-**region:** take a look at the GCP Region and Zone documentation at this [link here](https://cloud.google.com/compute/docs/regions-zones#available). We generally recommend you choose a geographically nearby region.
486
484
-**zone:** Zone is a subset of region. it is almost always the same as **region** appended with `-a`, `-b`, or `-c`. The zone you select within a region should not have a functional impact.
487
485
-**instance_name:** we recommend naming your VM: `lw-de-vm-<YOUR_GITHUB_USERNAME>`. Replacing `<YOUR_GITHUB_USERNAME>` with your GitHub username.
488
-
-**instance_user:** in Command Prompt, run `echo %username%`, and enter the value
486
+
-**instance_user:** in Command Prompt, run `echo %username%`, and enter the value - try and remember your username, you will need it later on
489
487
490
488
After completing this file, it might look similar to:
491
489
@@ -525,7 +523,7 @@ Terraform is telling you what it will create:
525
523
- A compute engine instance
526
524
- A static external IP address
527
525
528
-
**❗ If you have any errors, read the error and debug. If you need some help, raise a ticket with a teacher. ❗**
526
+
**❗ If you have any errors, read the error and debug. If you are unsure, raise a ticket with a teacher. ❗**
529
527
530
528
If everything was successful, create your VM with:
A bit happening here, most of it is documentation and context. Because of some quirks with Windows, we are in fact going to edit this file by hand. We want to add a new `User YOUR_USERNAME` key-value pair to the SSH connection configuration block. In the indented section after `CheckHostIP=no`, add a new `User` label with the value of your Windows username. For example: If the output of `echo %username%` in command prompt was `TaylorSwift`, my updated configuration would be:
Windows has strict permissions for SSH files by default, we need to alter some permissions on the SSH configuration that was created by `gcloud` so VS Code can read the files and manage the SSH connection.
@@ -618,13 +666,13 @@ Notice the connection in the very bottom-left corner of your VS Code window. It
618
666
If you want to view your SSH configuration:
619
667
1. Start by clicking the symbol in the bottom-left corner of VS Code
620
668
2. Click on **Connect to Host...**
621
-
3. Click on **Configure SSH Hosts...***
669
+
3. Click on **Configure SSH Hosts...**
622
670
4. Select the configuration file. Usually the file at the top of the list.
623
671
5. View your configuration file! You may need to edit this configuration if you change computers, or want to work on more than one computer during the bootcamp.
624
672
625
673
</details>
626
674
627
-
Congratulations, the setup of you local laptop is complete 🎉 We just need to fine tune your Virtual Machine 🪛
675
+
Congratulations, the setup of you local computer is complete 🎉 We just need to fine tune your Virtual Machine 🪛
628
676
629
677
---
630
678
@@ -753,7 +801,7 @@ cd ~/vm-ansible-setup && ansible-playbook playbooks/setup_vm_part1.yml
753
801
754
802
And the playbook should start running!
755
803
756
-
❗ If an errors occur, raise a ticket with a teacher. The ansible playbooks are designed so that they can be run again, and again, and again and only make the changes that are required.
804
+
❗ If an errors occur, raise a ticket with a teacher. The ansible playbooks are designed so that they can be run again, and again, and again and only make the changes that are required (a cool concept called _Idempotency_ that you'll learn about later 😉).
757
805
758
806
### What is the playbook installing?
759
807
@@ -770,7 +818,7 @@ While this playbook is running, lets go through what is being installed and conf
770
818
771
819
The playbook is also running checks to see if things are installed or not. This is so you can safely re-run the playbook without any problems.
772
820
773
-
💡 Curious about how Ansible playbooks are defined, take a look at the playbook being run at this [link here 🔗](https://github.com/lewagon/data-engineering-setup/blob/main-automation/automation/vm-ansible-setup/playbooks/setup_vm_part1.yml)
821
+
💡 Curious about how Ansible playbooks are defined, take a look at the playbooks' source code at this [link here 🔗](https://github.com/lewagon/data-engineering-setup/blob/main-automation/automation/vm-ansible-setup/playbooks/setup_vm_part1.yml). You might not understand exactly what is happening, but should be able to identify the different tasks.
774
822
775
823
776
824
## GitHub CLI
@@ -843,7 +891,7 @@ Open a ticket with a TA and do one of the following:
843
891
- Compare your existing dotfiles with the current Le Wagon [dotfiles 🔗](https://github.com/lewagon/dotfiles), particularly the `.zshrc` and `settings.json` - if there is no meaningful difference, continue with the setup.
844
892
- If you are OK with losing your existing dotfiles - delete your existing dotfiles repository on GitHub and continue with the setup
845
893
- If you do not want to lose your existing dotfiles, we recommend working with branches:
846
-
- On your **laptop**, or wherever you have a **local** copy of **your** copy of dotfiles
894
+
- On your **laptop**, or wherever you have a **local** copy of **your existing version of dotfiles**
847
895
- Create a branch of your existing dotfiles setup, and push to GitHub - `origin <branchname>`
848
896
- On `local main` (or a new named branch), pull from `upstream main`, resolve any conflicts, commit, and push. It is important that you accept incoming changes to the `.zshrc` and `settings.json` files
849
897
- Continue with the setup
@@ -928,7 +976,11 @@ cd ~/vm-ansible-setup && ansible-playbook playbooks/setup_vm_part2.yml
928
976
929
977
And the playbook should start running! If you're asked if you want VS Code to behave more like Sublime Text, click accept.
930
978
931
-
❗ If any errors occur, raise a ticket with a teacher. You can safely run the playbook again.
979
+
❗ **If you created a password for your GitHub SSH key**
980
+
- You may be asked to type in your password during the playbook run
981
+
- The task: **Clone data-engineering-challenges from your GitHub to VM** will fail. This is OK and expected with how SSH keys work and how the playbooks are modifying your configuration. To resolve, in your terminal run: `exec zsh`, and then re-run the playbook.
982
+
983
+
❗ If any other errors occur, or your are unsure, raise a ticket with a teacher. You can safely run the playbook again and again. Generally, if the playbook runs from start to finish with no errors, everything should be good!
Copy file name to clipboardExpand all lines: _partials/dotfiles_simple.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Open a ticket with a TA and do one of the following:
16
16
- Compare your existing dotfiles with the current Le Wagon [dotfiles 🔗](https://github.com/lewagon/dotfiles), particularly the `.zshrc` and `settings.json` - if there is no meaningful difference, continue with the setup.
17
17
- If you are OK with losing your existing dotfiles - delete your existing dotfiles repository on GitHub and continue with the setup
18
18
- If you do not want to lose your existing dotfiles, we recommend working with branches:
19
-
- On your **laptop**, or wherever you have a **local** copy of **your** copy of dotfiles
19
+
- On your **laptop**, or wherever you have a **local** copy of **your existing version of dotfiles**
20
20
- Create a branch of your existing dotfiles setup, and push to GitHub - `origin <branchname>`
21
21
- On `local main` (or a new named branch), pull from `upstream main`, resolve any conflicts, commit, and push. It is important that you accept incoming changes to the `.zshrc` and `settings.json` files
Copy file name to clipboardExpand all lines: _partials/ubuntu_ansible_part1.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ cd ~/vm-ansible-setup && ansible-playbook playbooks/setup_vm_part1.yml
46
46
47
47
And the playbook should start running!
48
48
49
-
❗ If an errors occur, raise a ticket with a teacher. The ansible playbooks are designed so that they can be run again, and again, and again and only make the changes that are required.
49
+
❗ If an errors occur, raise a ticket with a teacher. The ansible playbooks are designed so that they can be run again, and again, and again and only make the changes that are required (a cool concept called _Idempotency_ that you'll learn about later 😉).
50
50
51
51
### What is the playbook installing?
52
52
@@ -63,4 +63,4 @@ While this playbook is running, lets go through what is being installed and conf
63
63
64
64
The playbook is also running checks to see if things are installed or not. This is so you can safely re-run the playbook without any problems.
65
65
66
-
💡 Curious about how Ansible playbooks are defined, take a look at the playbook being run at this [link here 🔗](https://github.com/lewagon/data-engineering-setup/blob/main-automation/automation/vm-ansible-setup/playbooks/setup_vm_part1.yml)
66
+
💡 Curious about how Ansible playbooks are defined, take a look at the playbooks' source code at this [link here 🔗](https://github.com/lewagon/data-engineering-setup/blob/main-automation/automation/vm-ansible-setup/playbooks/setup_vm_part1.yml). You might not understand exactly what is happening, but should be able to identify the different tasks.
Copy file name to clipboardExpand all lines: _partials/ubuntu_ansible_part2.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,11 @@ cd ~/vm-ansible-setup && ansible-playbook playbooks/setup_vm_part2.yml
20
20
21
21
And the playbook should start running! If you're asked if you want VS Code to behave more like Sublime Text, click accept.
22
22
23
-
❗ If any errors occur, raise a ticket with a teacher. You can safely run the playbook again.
23
+
❗ **If you created a password for your GitHub SSH key**
24
+
- You may be asked to type in your password during the playbook run
25
+
- The task: **Clone data-engineering-challenges from your GitHub to VM** will fail. This is OK and expected with how SSH keys work and how the playbooks are modifying your configuration. To resolve, in your terminal run: `exec zsh`, and then re-run the playbook.
26
+
27
+
❗ If any other errors occur, or your are unsure, raise a ticket with a teacher. You can safely run the playbook again and again. Generally, if the playbook runs from start to finish with no errors, everything should be good!
0 commit comments