Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(apple-silicon): add tutorial ansible and terraform #3823

Open
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

Laure-di
Copy link
Contributor

Your checklist for this pull request

Description

Please describe what you added or changed.

@Laure-di Laure-di self-assigned this Oct 10, 2024
@Laure-di Laure-di marked this pull request as draft October 10, 2024 15:58
@github-actions github-actions bot added the status: draft Work in progress - do not merge or review label Oct 10, 2024
@bene2k1 bene2k1 requested review from bene2k1 and RoRoJ October 11, 2024 07:12
@Laure-di Laure-di marked this pull request as ready for review February 26, 2025 09:14
@github-actions github-actions bot removed the status: draft Work in progress - do not merge or review label Feb 26, 2025
@@ -0,0 +1,229 @@
---
meta:
title: Automating Apple Silicon Server Creation with Terraform and Ansible
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title: Automating Apple Silicon Server Creation with Terraform and Ansible
title: Automating Apple silicon server creation with Terraform and Ansible

---
meta:
title: Automating Apple Silicon Server Creation with Terraform and Ansible
description: Learn how to automate the creation and management of Apple Silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Learn how to automate the creation and management of Apple Silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools
description: Learn how to automate the creation and management of Apple silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools.

title: Automating Apple Silicon Server Creation with Terraform and Ansible
description: Learn how to automate the creation and management of Apple Silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools
content:
h1: Automating Apple Silicon Server Creation with Terraform and Ansible
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
h1: Automating Apple Silicon Server Creation with Terraform and Ansible
h1: Automating Apple silicon server creation with Terraform and Ansible

description: Learn how to automate the creation and management of Apple Silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools
content:
h1: Automating Apple Silicon Server Creation with Terraform and Ansible
description: Learn how to automate the creation and management of Apple Silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Learn how to automate the creation and management of Apple Silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools
description: Learn how to automate the creation and management of Apple silicon servers using Terraform and Ansible. This guide provides step-by-step instructions for both tools.


## Understanding the Tools

### HashiCorp Terraform
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mention OpenTofu as well


### Using Ansible

1. Install Ansible: If you don't have Ansible installed on your system, you can easily install it using pip, the Python package manager. Run the following command:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would simply put a link to the ansible documentation as it can cover more up to date information and many platforms

register: applesilicon_server
```

6. Set Up Your Scaleway Credentials: Replace the placeholders {{ scw_access_key }}, {{ scw_secret_key }}, and {{ scw_project_id }} with your actual credentials. It’s a good practice to store these values in environment variables or an Ansible vault for added security. Alternatively, you can use a .env file or an external credentials file.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you show a command line example about how to pass environment variables through the command line?

register: applesilicon_server
```

6. Set Up Your Scaleway Credentials: Replace the placeholders {{ scw_access_key }}, {{ scw_secret_key }}, and {{ scw_project_id }} with your actual credentials. It’s a good practice to store these values in environment variables or an Ansible vault for added security. Alternatively, you can use a .env file or an external credentials file.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way for ansible to catch those variables if they are already defined in the scaleway configuration file? It could be an alternative to passing the variables around

gather_facts: no
tasks:
- name: Create an Apple Silicon server
scaleway.scaleway.scaleway_applesilicon_server:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is completely redundant with the terraform part of the tutorial. I fail to see what this steps provides. One useful alternative could be to either:

@github-actions github-actions bot added type: developer Front Website changes type: dependencies Pull requests that update a dependency file type: changelog Changelog entries labels Mar 11, 2025
Laure-di and others added 15 commits March 12, 2025 14:23
@Laure-di Laure-di force-pushed the int-add-applesilicon branch from da2748a to 0f533c7 Compare March 12, 2025 13:23
@github-actions github-actions bot removed type: developer Front Website changes type: dependencies Pull requests that update a dependency file type: changelog Changelog entries labels Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants