Compare commits
No commits in common. "main" and "1.0.0rc0" have entirely different histories.
5 changed files with 70 additions and 14 deletions
68
CHANGELOG.md
68
CHANGELOG.md
|
|
@ -1,23 +1,81 @@
|
||||||
## 1.0.0 (2026-06-21)
|
## 0.1.0a7 (2026-06-11)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- add test
|
||||||
|
|
||||||
|
## 0.1.0a6 (2026-05-04)
|
||||||
|
|
||||||
### Feat
|
### Feat
|
||||||
|
|
||||||
- multi layers
|
- multi layers
|
||||||
- add new parameter ansible.file_with_secrets
|
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|
||||||
- rougail dependencies
|
|
||||||
- black
|
|
||||||
- add test
|
|
||||||
- user-data-ansible can set a personalise source
|
- user-data-ansible can set a personalise source
|
||||||
|
|
||||||
|
## 0.1.0a5 (2025-11-21)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
- ExtentionError => ExtensionError
|
- ExtentionError => ExtensionError
|
||||||
|
|
||||||
|
## 0.1.0a4 (2025-11-06)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
- disable config if ansible is not selected
|
- disable config if ansible is not selected
|
||||||
|
|
||||||
|
## 0.1.0a3 (2025-05-02)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
- do not force use_data usage
|
- do not force use_data usage
|
||||||
|
|
||||||
|
## 0.1.0a2 (2025-04-09)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
- version
|
- version
|
||||||
|
|
||||||
|
## 0.1.0a1 (2025-03-30)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
- i18n
|
- i18n
|
||||||
|
|
||||||
|
## 0.1.0a0 (2025-02-10)
|
||||||
|
|
||||||
|
### Feat
|
||||||
|
|
||||||
|
- add new parameter ansible.file_with_secrets
|
||||||
|
|
||||||
|
## 0.0.1a4 (2025-01-02)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
- output ansible is loaded after
|
- output ansible is loaded after
|
||||||
|
|
||||||
|
## 0.0.1a3 (2024-12-11)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
- user-data file is now user-data yaml
|
- user-data file is now user-data yaml
|
||||||
|
|
||||||
|
## 0.0.1a2 (2024-12-11)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
- specialize error
|
- specialize error
|
||||||
|
|
||||||
|
## 0.0.1a1 (2024-11-27)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
- support user data ansible with output ansible
|
- support user data ansible with output ansible
|
||||||
|
|
||||||
|
## 0.0.1a0 (2024-11-25)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
- new ansible plugin loader
|
- new ansible plugin loader
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rougail.user_data_ansible"
|
name = "rougail.user_data_ansible"
|
||||||
version = "1.0.0"
|
version = "1.0.0rc0"
|
||||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "Rougail user_data ansible"
|
description = "Rougail user_data ansible"
|
||||||
|
|
@ -24,7 +24,7 @@ classifiers = [
|
||||||
|
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rougail-user-data-yaml >= 1.0.0,<2",
|
"rougail-user-data-yaml >= 0.1,<2",
|
||||||
"ansible",
|
"ansible",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from ansible.parsing.vault import VaultLib, PromptVaultSecret
|
from ansible.parsing.vault import VaultLib, PromptVaultSecret
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from ansible.module_utils.common.text.converters import to_bytes
|
from ansible.module_utils.common.text.converters import to_bytes
|
||||||
except ModuleNotFoundError:
|
except ModuleNotFoundError:
|
||||||
|
|
@ -32,8 +31,8 @@ from .__version__ import __version__
|
||||||
|
|
||||||
|
|
||||||
class RougailUserDataAnsible(RougailUserDataYaml):
|
class RougailUserDataAnsible(RougailUserDataYaml):
|
||||||
"""Load Ansible data from encrypted file"""
|
"""Load Ansible data from encrypted file
|
||||||
|
"""
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
config,
|
config,
|
||||||
|
|
@ -43,7 +42,6 @@ class RougailUserDataAnsible(RougailUserDataYaml):
|
||||||
) -> None:
|
) -> None:
|
||||||
if rougailconfig is None:
|
if rougailconfig is None:
|
||||||
from rougail import RougailConfig
|
from rougail import RougailConfig
|
||||||
|
|
||||||
rougailconfig = RougailConfig
|
rougailconfig = RougailConfig
|
||||||
user_data = rougailconfig["step.user_data"]
|
user_data = rougailconfig["step.user_data"]
|
||||||
if "ansible" not in user_data:
|
if "ansible" not in user_data:
|
||||||
|
|
@ -62,7 +60,8 @@ class RougailUserDataAnsible(RougailUserDataYaml):
|
||||||
self.source = _('the Ansible file "{0}"')
|
self.source = _('the Ansible file "{0}"')
|
||||||
|
|
||||||
def open(self, filename: str) -> dict:
|
def open(self, filename: str) -> dict:
|
||||||
"""Open file"""
|
"""Open file
|
||||||
|
"""
|
||||||
prompt = PromptVaultSecret(
|
prompt = PromptVaultSecret(
|
||||||
to_bytes(self.secret), "default", ["Vault password: "]
|
to_bytes(self.secret), "default", ["Vault password: "]
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
__version__ = "1.0.0"
|
__version__ = "1.0.0rc0"
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ details.
|
||||||
You should have received a copy of the GNU Lesser General Public License
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from .i18n import _
|
from .i18n import _
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue