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

chore(tutorial): content review #3839

Merged
merged 6 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions network/domains-and-dns/how-to/manage-dns-records.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
meta:
title: How to manage DNS records
description: Learn how to manage DNS records effectively with Scaleway Domains and DNS. Discover how to add, edit, and delete DNS records, along with advanced configurations like dynamic records for traffic management and Geo IP for optimizing user experience based on location.
content:
h1: How to manage DNS records
paragraph: Learn how to manage DNS records effectively with Scaleway Domains and DNS. Discover how to add, edit, and delete DNS records, along with advanced configurations like dynamic records for traffic management and Geo IP for optimizing user experience based on location.
tags: txt-record mx-record dns-record dns domain records
Expand Down
6 changes: 3 additions & 3 deletions tutorials/backup-dedicated-server-s3-duplicity/index.mdx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
meta:
title: Backing up your dedicated server on Object Storage with Duplicity
title: Backing up your dedicated server on Scaleway Object Storage with Duplicity
description: Automatize your backups with Duplicity and Scaleway Object Storage
content:
h1: Backing up your dedicated server on Object Storage with Duplicity
h1: Backing up your dedicated server on Scaleway Object Storage with Duplicity
paragraph: Automatize your backups with Duplicity and Scaleway Object Storage
tags: duplicity backup gpg s3
categories:
- object-storage
dates:
validation: 2024-04-09
validation: 2024-10-15
posted: 2018-10-13
---

Expand Down
2 changes: 1 addition & 1 deletion tutorials/create-wordpress-instances-cli/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ categories:
- instances
tags: InstantApp WordPress
dates:
validation: 2024-04-04
validation: 2024-10-15
posted: 2021-10-11
---

Expand Down
50 changes: 28 additions & 22 deletions tutorials/deploy-nextcloud-s3/index.mdx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
meta:
title: Deploying NextCloud with Object Storage
description: This page shows how to deploy and configure NextCloud with Object Storage
title: Deploying NextCloud with Scaleway Object Storage
description: This page shows how to deploy and configure NextCloud with Scaleway Object Storage
content:
h1: Deploying NextCloud with Object Storage
paragraph: This page shows how to deploy and configure NextCloud with Object Storage
h1: Deploying NextCloud with Scaleway Object Storage
paragraph: This page shows how to deploy and configure NextCloud with Scaleway Object Storage
categories:
- object-storage
- instances
tags: NextCloud mariadb apache
dates:
validation: 2024-04-09
validation: 2024-10-15
posted: 2018-11-16
---

Expand All @@ -23,25 +23,27 @@ Combining NextCloud with Scaleway Object Storage gives you infinite storage spac
- A Scaleway account logged into the [console](https://console.scaleway.com)
- [Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) allowing you to perform actions in the intended Organization
- An [SSH key](/identity-and-access-management/organizations-and-projects/how-to/create-ssh-key/)
- An [Instance](/compute/instances/how-to/create-an-instance/) running on Ubuntu Jammy Jellyfish (22.04)
- An [Instance](/compute/instances/how-to/create-an-instance/) running on Ubuntu Jammy Jellyfish (22.04) or later
- Installed and configured [MariaDB](/tutorials/mariadb-ubuntu-bionic/) on your Instance
- `sudo` privileges or access to the root user

## Installing NextCloud

1. Log in to your server via SSH.
1. Log in to your Instance via SSH.
```
ssh root@<your_instance_public_ip>
```
2. Update the apt-sources and the already installed software on the server:
```
apt update && apt upgrade -y
```
3. Install the required software from the apt repositories:
```
apt install apache2 mariadb-server libapache2-mod-php
apt install php-gd php-json php-mysql php-curl php-mbstring php-intl php-imagick php-xml php-zip
apt update && apt upgrade -y && apt install apache2 mariadb-server libapache2-mod-php php-gd php-json php-mysql php-curl php-mbstring php-intl php-imagick php-xml php-zip -y
```
4. Download the [latest version](https://nextcloud.com/changelog/) of NextCloud:
```
wget https://download.nextcloud.com/server/releases/latest.tar.bz2
wget https://download.nextcloud.com/server/releases/latest.tar.bz2 -O nextcloud.tar.bz2
```

<Message type="tip">
Expand All @@ -51,16 +53,23 @@ Combining NextCloud with Scaleway Object Storage gives you infinite storage spac
```
tar -xjf latest.tar.bz2
```
6. Copy the NextCloud directory to the document root of Apache:
6. Move the extracted folder to the Apache web directory:
```
mv nextcloud /var/www/
```
cp -r nextcloud /var/www
7. Set the correct file permissions:
```
chown -R www-data:www-data /var/www/nextcloud/
```
7. Create an Apache configuration file for NextCloud:

## Configuring Apache

1. Create an Apache configuration file for NextCloud:
```
nano /etc/apache2/sites-available/nextcloud.conf
```

And put the following content into it:
2. Insert the following content:
```
Alias /nextcloud "/var/www/nextcloud/"

Expand Down Expand Up @@ -108,14 +117,11 @@ Combining NextCloud with Scaleway Object Storage gives you infinite storage spac
mysql -u root -p
```
2. Create an empty database for NextCloud:
```
CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE IF NOT EXISTS nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost' IDENTIFIED BY 'password';
FLUSH privileges;
```
3. Log out from the MariaDB shell:
```
```sql
CCREATE DATABASE nextcloud;
CREATE USER 'nextclouduser'@'localhost' IDENTIFIED BY 'your_secure_password';
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost';
FLUSH PRIVILEGES;
EXIT;
```

Expand Down
39 changes: 18 additions & 21 deletions tutorials/foreman-puppet/index.mdx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
meta:
title: Installing and configuring Foreman on Ubuntu Focal
description: Discover how to install and configure Foreman on Ubuntu Focal
title: Installing and configuring Foreman on Ubuntu Jammy Jellyfish (22.04 LTS)
description: Discover how to install and configure Foreman on Ubuntu Jammy Jellyfish (22.04 LTS)
content:
h1: Installing and configuring Foreman on Ubuntu Focal
paragraph: Discover how to install and configure Foreman on Ubuntu Focal
tags: Foreman puppet Ubuntu Focal
h1: Installing and configuring Foreman on Ubuntu Jammy Jellyfish (22.04 LTS)
paragraph: Discover how to install and configure Foreman on Ubuntu Jammy Jellyfish (22.04 LTS)
tags: Foreman puppet Ubuntu Jammy Jellyfish
categories:
- instances
dates:
validation: 2024-04-04
validation: 2024-10-15
posted: 2018-08-06
---

Expand All @@ -24,7 +24,7 @@ This tutorial assumes that Foreman is being installed on a fresh Instance, which
- A Scaleway account logged into the [console](https://console.scaleway.com)
- [Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) allowing you to perform actions in the intended Organization
- An [SSH key](/identity-and-access-management/organizations-and-projects/how-to/create-ssh-key/)
- An [Instance](/compute/instances/how-to/create-an-instance/) running on Ubuntu Focal Fossa (20.04) or later
- An [Instance](/compute/instances/how-to/create-an-instance/) running on Ubuntu Jammy Jellyfish (22.04 LTS) or later
- Root access to all the servers you want to manage
- A reachable port 8140 on the Puppet primary Instance
- A working Puppet installation to perform the configuration management of hosts
Expand Down Expand Up @@ -83,14 +83,15 @@ The fastest way to install Foreman is by using the installer, which installs and
1. Install Puppet 6.x from the Puppetlabs repository as follows:
```
apt-get -y install ca-certificates
wget https://apt.puppetlabs.com/puppet6-release-focal.deb
sudo dpkg -i puppet6-release-focal.deb
wget https://apt.puppetlabs.com/puppet7-release-focal.deb
sudo dpkg -i puppet7-release-focal.deb
apt-get update
apt-get -y install puppet-agent
```
2. Add the Foreman repository to the [APT package manager sources list](https://en.wikipedia.org/wiki/APT_(Debian)):
```
echo "deb http://deb.theforeman.org/ focal 3.1" | sudo tee /etc/apt/sources.list.d/foreman.list
echo "deb http://deb.theforeman.org/ plugins 3.1" | sudo tee -a /etc/apt/sources.list.d/foreman.list
sudo apt-get -y install ca-certificates
echo "deb http://deb.theforeman.org/ focal 3.7" | sudo tee /etc/apt/sources.list.d/foreman.list
echo "deb http://deb.theforeman.org/ plugins 3.7" | sudo tee -a /etc/apt/sources.list.d/foreman.list
wget -q https://deb.theforeman.org/pubkey.gpg -O- | sudo apt-key add -
```
3. Download the installer via APT:
Expand All @@ -102,16 +103,12 @@ The fastest way to install Foreman is by using the installer, which installs and
foreman-installer
```

The command returns the following output:

Upon completion, you will see:
```
Installing Done [100%] [..]
Success!
* Foreman is running at https://foreman.example.com
Initial credentials are admin / 6fHtmSWpqNbGo7nn
* Foreman Proxy is running at https://foreman.example.com:8443
* Puppetprimary is running at port 8140
The full log is at /var/log/foreman-installer/foreman.log
Success!
* Foreman is running at https://<your_foreman_url>
Initial credentials: admin / <random_password>
* Puppet server is running at port 8140
```

## Managing Puppet
Expand Down
Loading