Commit 8933a2c6 authored by onknows's avatar onknows
Browse files

import projects

C2-442
parent bba4fefc
Loading
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -28,6 +28,35 @@ C2 Platform Ansible Collection with development roles. These roles are not inten
* {{< extlink "https://gitlab.com/c2platform/c2/ansible-collection-dev/-/blob/master/roles/desktop/" "desktop" >}}.
* {{< extlink "https://gitlab.com/c2platform/c2/ansible-collection-dev/-/blob/master/roles/graylog/" "graylog" >}}.

## Inventory Plugins

* `c2platform.dev.vagrant` — Generates an Ansible inventory from a C2 Platform
  `Vagrantfile.yml`. Hosts are taken from the `nodes` section and groups are
  generated from the node and box `labels`.

### `label_groups`

The `vagrant` inventory plugin supports a `label_groups` option that allows
configuring parent groups based on labels. It is defined at the top level of
`Vagrantfile.yml`:

```yaml
label_groups:
  cka: [cka_worker, cka_cp, cka_cp_join]
  cka_etcdctl: [cka_cp, cka_cp_join]
```

With the configuration above, when a node has a label `cka_worker`, `cka_cp` or
`cka_cp_join`, it will automatically also be placed in the parent group `cka`.
This is the equivalent of the following INI `[parent:children]` construct:

```ini
[cka:children]
cka_worker
cka_cp
cka_cp_join
```

## Modules and Filters

For detailed information on the available modules and filters within this
@@ -41,6 +70,8 @@ documentation:
```bash
ansible-doc -t module --list c2platform.dev
ansible-doc -t filter --list c2platform.dev
ansible-doc -t inventory --list c2platform.dev
ansible-doc -t inventory c2platform.dev.vagrant
ansible-doc -t filter <FILTER_NAME>
ansible-doc -t module <MODULE_NAME>
```
+3 −3
Original line number Diff line number Diff line
---
categories: ["GitLab Project", "Ansible Role"]
description: ""
description: "Provisions an Ubuntu 24.04 Ansible development desktop with VirtualBox, LXD, and Vagrant."
linkTitle: "Desktop"
tags: ['ansible', 'role']
tags: ['ansible', 'c2platform', 'desktop', 'development', 'linux', 'lxd', 'role', 'ubuntu', 'vagrant', 'virtualbox']
title: "Ansible Desktop Role"
weight: 10
project: {'id': 40905588, 'description': 'C2 Ansible Dev collection', 'name': 'Ansible Dev Collection', 'path': 'ansible-collection-dev', 'path_with_namespace': 'c2platform/c2/ansible-collection-dev', 'created_at': '2022-11-09T05:00:07.314Z', 'default_branch': 'master', 'ssh_url_to_repo': 'git@gitlab.com:c2platform/c2/ansible-collection-dev.git', 'http_url_to_repo': 'https://gitlab.com/c2platform/c2/ansible-collection-dev.git', 'web_url': 'https://gitlab.com/c2platform/c2/ansible-collection-dev', 'readme_url': 'https://gitlab.com/c2platform/c2/ansible-collection-dev/-/blob/master/README.md', 'forks_count': 1, 'avatar_url': 'https://gitlab.com/uploads/-/system/project/avatar/40905588/ansible.png'}
meta: None
meta: {'galaxy_info': {'author': 'C2 Platform (https://c2platform.org)', 'role_name': 'desktop', 'description': 'Provisions an Ubuntu 24.04 Ansible development desktop with VirtualBox, LXD, and Vagrant.', 'license': 'MIT', 'min_ansible_version': '2.16.0', 'platforms': [{'name': 'Ubuntu', 'versions': ['noble']}], 'galaxy_tags': ['c2platform', 'ansible', 'development', 'desktop', 'linux', 'ubuntu', 'virtualbox', 'lxd', 'vagrant']}, 'dependencies': []}
collection: {'namespace': 'c2platform', 'name': 'dev', 'version': '1.0.4', 'readme': 'README-GALAXY.md', 'authors': ['Onno van der Straaten (https://gitlab.com/onknows)'], 'license_file': 'LICENSE', 'description': 'C2 Platform Ansible Collection with Development Roles, Modules, Filters', 'tags': ['c2platform', 'common', 'dev', 'collection', 'linux', 'windows'], 'dependencies': {'ari_stark.ansible_oracle_modules': '>=1.2.1', 'community.windows': '>=1.8.0'}, 'repository': 'https://gitlab.com/c2platform/c2/ansible-collection-dev', 'documentation': 'https://gitlab.com/c2platform/c2/ansible-collection-dev', 'homepage': 'https://gitlab.com/c2platform/', 'issues': 'https://gitlab.com/c2platform/c2/ansible-collection-dev/-/issues', 'build_ignore': ['.ansible-lint', '.gitignore', '.gitlab-ci.yml', '.yamllint']}
original_title: "Ansible Role c2platform.dev.desktop"
---
+3 −3
Original line number Diff line number Diff line
---
categories: ["GitLab Project", "Ansible Role"]
description: ""
description: "Install and configure the Apache 2.x web server on RHEL, Debian, and Ubuntu."
linkTitle: "Apache"
tags: ['ansible', 'role']
tags: ['ansible', 'apache', 'c2platform', 'core', 'httpd', 'linux', 'role', 'web', 'webserver']
title: "Ansible Apache Role"
weight: 10
project: {'id': 39049044, 'description': 'C2 Ansible Middleware collection', 'name': 'Ansible Middleware Collection', 'path': 'ansible-collection-mw', 'path_with_namespace': 'c2platform/c2/ansible-collection-mw', 'created_at': '2022-09-01T05:14:39.010Z', 'default_branch': 'master', 'ssh_url_to_repo': 'git@gitlab.com:c2platform/c2/ansible-collection-mw.git', 'http_url_to_repo': 'https://gitlab.com/c2platform/c2/ansible-collection-mw.git', 'web_url': 'https://gitlab.com/c2platform/c2/ansible-collection-mw', 'readme_url': 'https://gitlab.com/c2platform/c2/ansible-collection-mw/-/blob/master/README.md', 'forks_count': 0, 'avatar_url': 'https://gitlab.com/uploads/-/system/project/avatar/39049044/ansible.png'}
meta: None
meta: {'galaxy_info': {'author': 'C2 Platform (https://c2platform.org)', 'role_name': 'linux', 'description': 'Install and configure the Apache 2.x web server on RHEL, Debian, and Ubuntu.', 'license': 'MIT', 'min_ansible_version': '2.16.0', 'platforms': [{'name': 'EL', 'versions': ['all']}, {'name': 'Debian', 'versions': ['all']}, {'name': 'Ubuntu', 'versions': ['all']}], 'galaxy_tags': ['c2platform', 'core', 'linux', 'apache', 'httpd', 'web', 'webserver']}, 'dependencies': []}
collection: {'namespace': 'c2platform', 'name': 'mw', 'version': '1.0.4', 'readme': 'README-GALAXY.md', 'authors': ['Onno van der Straaten (https://gitlab.com/onknows)'], 'license_file': 'LICENSE', 'description': 'C2 Platform Ansible Collection for Middleware Services', 'tags': ['c2platform', 'middleware', 'apache', 'docker', 'haproxy', 'nfs', 'postgresql', 'squid', 'collection', 'linux', 'keycloak', 'sso', 'ubuntu', 'redhat', 'rhel', 'rhn'], 'dependencies': {'c2platform.core': '>=1.0.23', 'community.docker': '>=4.4.0', 'kubernetes.core': '>=2.4.0'}, 'repository': 'https://gitlab.com/c2platform/c2/ansible-collection-mw', 'documentation': 'https://gitlab.com/c2platform/c2/ansible-collection-mw', 'homepage': 'https://gitlab.com/c2platform/', 'issues': 'https://gitlab.com/c2platform/c2/ansible-collection-mw/-/issues', 'build_ignore': ['.ansible-lint', '.gitignore', '.gitlab-ci.yml', '.yamllint']}
original_title: "Ansible Role Apache 2.x"
---
+16 −0
Original line number Diff line number Diff line
@@ -78,6 +78,22 @@ To see command line options, run `coauthor --help`.

<!-- end cli-usage -->

### Model Override

You can override the default AI model using the `COAUTHOR_MODEL` environment variable:

```bash
# Use a different model
export COAUTHOR_MODEL="openai/gpt-4"
coauthor --watch

# Or use with a local AI service
export COAUTHOR_MODEL="llama2:latest"
coauthor --watch
```

This is particularly useful when using profiles that don't specify a model or when testing with different AI services.

### Using with Jira

To enable Jira integration, configure authentication:
+31 −0
Original line number Diff line number Diff line
@@ -28,6 +28,35 @@ C2 Platform Ansible Collection with development roles. These roles are not inten
* {{< extlink "https://gitlab.com/c2platform/c2/ansible-collection-dev/-/blob/master/roles/desktop/" "desktop" >}}.
* {{< extlink "https://gitlab.com/c2platform/c2/ansible-collection-dev/-/blob/master/roles/graylog/" "graylog" >}}.

## Inventory Plugins

* `c2platform.dev.vagrant` — Generates an Ansible inventory from a C2 Platform
  `Vagrantfile.yml`. Hosts are taken from the `nodes` section and groups are
  generated from the node and box `labels`.

### `label_groups`

The `vagrant` inventory plugin supports a `label_groups` option that allows
configuring parent groups based on labels. It is defined at the top level of
`Vagrantfile.yml`:

```yaml
label_groups:
  cka: [cka_worker, cka_cp, cka_cp_join]
  cka_etcdctl: [cka_cp, cka_cp_join]
```

With the configuration above, when a node has a label `cka_worker`, `cka_cp` or
`cka_cp_join`, it will automatically also be placed in the parent group `cka`.
This is the equivalent of the following INI `[parent:children]` construct:

```ini
[cka:children]
cka_worker
cka_cp
cka_cp_join
```

## Modules and Filters

For detailed information on the available modules and filters within this
@@ -41,6 +70,8 @@ documentation:
```bash
ansible-doc -t module --list c2platform.dev
ansible-doc -t filter --list c2platform.dev
ansible-doc -t inventory --list c2platform.dev
ansible-doc -t inventory c2platform.dev.vagrant
ansible-doc -t filter <FILTER_NAME>
ansible-doc -t module <MODULE_NAME>
```
Loading