mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
change OS X to macOS (#41294)
* change OS X to macOS <!--- Your description here --> +label: docsite_pr * Update all Mac OS X references to be macOS * Drop extra Mac
This commit is contained in:
@@ -22,7 +22,7 @@ from ansible.module_utils.facts.network.generic_bsd import GenericBsdIfconfigNet
|
||||
|
||||
class DarwinNetwork(GenericBsdIfconfigNetwork):
|
||||
"""
|
||||
This is the Mac OS X/Darwin Network Class.
|
||||
This is the Mac macOS Darwin Network Class.
|
||||
It uses the GenericBsdIfconfigNetwork unchanged
|
||||
"""
|
||||
platform = 'Darwin'
|
||||
|
||||
@@ -109,7 +109,7 @@ class GenericBsdIfconfigNetwork(Network):
|
||||
all_ipv4_addresses=[],
|
||||
all_ipv6_addresses=[],
|
||||
)
|
||||
# FreeBSD, DragonflyBSD, NetBSD, OpenBSD and OS X all implicitly add '-a'
|
||||
# FreeBSD, DragonflyBSD, NetBSD, OpenBSD and macOS all implicitly add '-a'
|
||||
# when running the command 'ifconfig'.
|
||||
# Solaris must explicitly run the command 'ifconfig -a'.
|
||||
rc, out, err = self.module.run_command([ifconfig_path, ifconfig_options])
|
||||
|
||||
@@ -248,8 +248,8 @@ if not HAS_MATCH_HOSTNAME:
|
||||
HAS_MATCH_HOSTNAME = True
|
||||
|
||||
|
||||
# This is a dummy cacert provided for Mac OS since you need at least 1
|
||||
# ca cert, regardless of validity, for Python on Mac OS to use the
|
||||
# This is a dummy cacert provided for macOS since you need at least 1
|
||||
# ca cert, regardless of validity, for Python on macOS to use the
|
||||
# keychain functionality in OpenSSL for validating SSL certificates.
|
||||
# See: http://mercurial.selenic.com/wiki/CACertificates#Mac_OS_X_10.6_and_higher
|
||||
b_DUMMY_CA_CERT = b"""-----BEGIN CERTIFICATE-----
|
||||
@@ -625,7 +625,7 @@ class SSLValidationHandler(urllib_request.BaseHandler):
|
||||
to_add_fd, to_add_path = tempfile.mkstemp()
|
||||
to_add = False
|
||||
|
||||
# Write the dummy ca cert if we are running on Mac OS X
|
||||
# Write the dummy ca cert if we are running on macOS
|
||||
if system == u'Darwin':
|
||||
os.write(tmp_fd, b_DUMMY_CA_CERT)
|
||||
# Default Homebrew path for OpenSSL certs
|
||||
|
||||
@@ -424,7 +424,7 @@ def format_output(module, path, st):
|
||||
('st_ftype', 'file_type'),
|
||||
('st_attrs', 'attrs'),
|
||||
('st_obtype', 'object_type'),
|
||||
# OS X
|
||||
# macOS
|
||||
('st_rsize', 'real_size'),
|
||||
('st_creator', 'creator'),
|
||||
('st_type', 'file_type'),
|
||||
|
||||
@@ -283,7 +283,7 @@ class DragonFlyBsdGroup(FreeBsdGroup):
|
||||
|
||||
class DarwinGroup(Group):
|
||||
"""
|
||||
This is a Mac OS X Darwin Group manipulation class.
|
||||
This is a Mac macOS Darwin Group manipulation class.
|
||||
|
||||
This overrides the following methods from the generic class:-
|
||||
- group_del()
|
||||
|
||||
@@ -16,10 +16,10 @@ DOCUMENTATION = '''
|
||||
---
|
||||
module: osx_defaults
|
||||
author: Franck Nijhof (@frenck)
|
||||
short_description: osx_defaults allows users to read, write, and delete Mac OS X user defaults from Ansible
|
||||
short_description: osx_defaults allows users to read, write, and delete macOS user defaults from Ansible
|
||||
description:
|
||||
- osx_defaults allows users to read, write, and delete Mac OS X user defaults from Ansible scripts.
|
||||
Mac OS X applications and other programs use the defaults system to record user preferences and other
|
||||
- osx_defaults allows users to read, write, and delete macOS user defaults from Ansible scripts.
|
||||
macOS applications and other programs use the defaults system to record user preferences and other
|
||||
information that must be maintained when the applications aren't running (such as default font for new
|
||||
documents, or the position of an Info panel).
|
||||
version_added: "2.0"
|
||||
|
||||
@@ -41,7 +41,7 @@ options:
|
||||
required: false
|
||||
type: bool
|
||||
description:
|
||||
- Darwin/OS X only, optionally hide the user from the login window and system preferences.
|
||||
- macOS only, optionally hide the user from the login window and system preferences.
|
||||
- The default will be 'True' if the I(system) option is used.
|
||||
version_added: "2.6"
|
||||
non_unique:
|
||||
@@ -74,8 +74,8 @@ options:
|
||||
shell:
|
||||
description:
|
||||
- Optionally set the user's shell.
|
||||
- On Mac OS X, before version 2.5, the default shell for non-system users was /usr/bin/false.
|
||||
Since 2.5, the default shell for non-system users on Mac OS X is /bin/bash.
|
||||
- On macOS, before version 2.5, the default shell for non-system users was /usr/bin/false.
|
||||
Since 2.5, the default shell for non-system users on macOS is /bin/bash.
|
||||
home:
|
||||
description:
|
||||
- Optionally set the user's home directory.
|
||||
@@ -86,7 +86,7 @@ options:
|
||||
password:
|
||||
description:
|
||||
- Optionally set the user's password to this crypted value.
|
||||
- On Darwin/OS X systems, this value has to be cleartext. Beware of security issues.
|
||||
- On macOS systems, this value has to be cleartext. Beware of security issues.
|
||||
- See U(https://docs.ansible.com/ansible/faq.html#how-do-i-generate-crypted-passwords-for-the-user-module)
|
||||
for details on various ways to generate these password values.
|
||||
state:
|
||||
@@ -1693,7 +1693,7 @@ class SunOS(User):
|
||||
|
||||
class DarwinUser(User):
|
||||
"""
|
||||
This is a Darwin Mac OS X User manipulation class.
|
||||
This is a Darwin macOS User manipulation class.
|
||||
Main differences are that Darwin:-
|
||||
- Handles accounts in a database managed by dscl(1)
|
||||
- Has no useradd/groupadd
|
||||
|
||||
@@ -836,7 +836,7 @@ class VaultEditor:
|
||||
r = subprocess.call(['shred', tmp_path])
|
||||
except (OSError, ValueError):
|
||||
# shred is not available on this system, or some other error occurred.
|
||||
# ValueError caught because OS X El Capitan is raising an
|
||||
# ValueError caught because macOS El Capitan is raising an
|
||||
# exception big enough to hit a limit in python2-2.7.11 and below.
|
||||
# Symptom is ValueError: insecure pickle when shred is not
|
||||
# installed there.
|
||||
|
||||
@@ -11,7 +11,7 @@ DOCUMENTATION = '''
|
||||
type: notification
|
||||
requirements:
|
||||
- whitelising in configuration
|
||||
- the '/usr/bin/say' command line program (standard on OS X)
|
||||
- the '/usr/bin/say' command line program (standard on macOS)
|
||||
short_description: oneline Ansible screen output
|
||||
version_added: historical
|
||||
description:
|
||||
@@ -32,7 +32,7 @@ SAY_CMD = "/usr/bin/say"
|
||||
|
||||
class CallbackModule(CallbackBase):
|
||||
"""
|
||||
makes Ansible much more exciting on OS X.
|
||||
makes Ansible much more exciting on macOS.
|
||||
"""
|
||||
CALLBACK_VERSION = 2.0
|
||||
CALLBACK_TYPE = 'notification'
|
||||
|
||||
@@ -275,7 +275,7 @@ def get_encrypted_password(password, hashtype='sha512', salt=None):
|
||||
|
||||
if not HAS_PASSLIB:
|
||||
if sys.platform.startswith('darwin'):
|
||||
raise AnsibleFilterError('|password_hash requires the passlib python module to generate password hashes on Mac OS X/Darwin')
|
||||
raise AnsibleFilterError('|password_hash requires the passlib python module to generate password hashes on macOS/Darwin')
|
||||
saltstring = "$%s$%s" % (cryptmethod[hashtype], salt)
|
||||
encrypted = crypt.crypt(password, saltstring)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user