Questions tagged [configuration-management]
Managing configurations across environments is part of the configuration management.
663
questions
0
votes
1answer
56 views
How to locally export config from a remote environment?
If I have config that's out of sync on production, I may want to export it without copying down the database, or I may have environment-specific config that interferes with exporting config from the ...
-2
votes
3answers
56 views
Where is the temporary directory defined in the code?
I wonder where the tmp dir is set in the code of Drupal 8. Indeed the upload_tmp_dir value is not set in the php.ini and I have no access to change it.
Where in the code the value is defined and ...
0
votes
1answer
37 views
Is there a way to selectively export specific relevant configuration into custom modules?
I'm learning D8 and gaining familiarity with the configuration management aspects of drush.
All my configuration is exported into my config/sync directory and I cherry picked the relevant files and ...
4
votes
2answers
896 views
Prevent directory permissions of sites/default from being protected in a local environment?
Drupal automatically changes the directory permissions of sites/default to 555 (i.e. read-only), which means that if I'm editing sites/default/settings.php, even if I've set the permissions for that ...
0
votes
0answers
56 views
Can't extend schema of an existing `config_object`
Use-case:
Module A defines the following schema:
module_a.schema.yml
module_a.settings.api:
type: config_object
label: API settings
mapping:
store:
type: string
label: Store ...
4
votes
2answers
520 views
Development with git branches/ gitflow and new modules
I wonder if somebody found a solution for the following issue related to Drupal 8 development with Git branches:
You work on a new feature in a local feature branch
for that you activate a ...
2
votes
1answer
851 views
TypeError on “drush config-export”
I've been receiving the following error message when trying to do a drush config-export command.
However, I am able to successfully do the configuration export from the Drupal admin page (admin/config/...
3
votes
2answers
545 views
Overriding permissions selectively via settings.php/settings.local.php
The use case is a development module that you would only have installed on a local environment.
My thought was to use $config in settings.php to do this:
$config['user.role.anonymous']['permissions']...
1
vote
1answer
419 views
Can I create an “unlimited” values variable?
I'm trying to create an exclude list of sorts that is configurable via the variable admin interface. I have created lots of single value variables, but never a variable as an array where through the ...
1
vote
2answers
426 views
Unable to save content language configuration
My Drupal 8 website is multilingual and has many entity type bundles for nodes, taxonomy terms, paragraphs, media et cetera. This leads to a content language settings form (admin/config/regional/...
50
votes
7answers
34k views
How can I import the configuration on a different site?
I have this error when I try to import the config of an another site:
The staged configuration cannot be imported, because it originates
from a different site than this site. You can only ...
7
votes
3answers
9k views
Site UUID in source storage does not match the target storage
When I run drush cim -y on my staging instance of my site I get the following error:
Drupal\Core\Config\ConfigImporterException: There were errors
validating the config synchronization. in Drupal\...
0
votes
0answers
20 views
Ignore custom block field content (settings) with config_ignore
I am trying to ignore the content of some fields in a custom defined block plugin.
In my block plugin (class MyAwesomeBlock extends BlockBase implements BlockPluginInterface { ... })
I've declared ...
2
votes
2answers
541 views
Can a domain redirect work for both http and https?
Currently hosting a site on Pantheon and I would like to redirect traffic to a single domain. There is already a lot of links inside my site that are using:
http://example.com/somepage, http://www....
0
votes
1answer
31 views
Failed to import Bootstrap Paragraph sub module configuration
I tried to implement the Hero with Xeno Hero in the Bootstrap Paragraphs in Drupal 8. I encountered an error when I tried to import the config of the sub module. I am not sure if I do it the right ...
6
votes
2answers
837 views
Disabling module with config sync and removing with composer
I have an issue disabling modules, I've searched but cannot find something useful:
- Developer A disable module and via composer remove it
- I pull his changes so i run composer install that remove ...
2
votes
1answer
492 views
Copy installed modules and configuration to new installation
I have a Drupal 8 application with mysql as database. I installed bunch of third part modules such as domain, search_api, pdf etc... Most I installed using composer and a very few using "Install ...
0
votes
3answers
347 views
alternative to storing api keys in migration yaml files?
I've created a yaml file to import Twitter timeline items (not super simple since documentation on the migrate_plus OAuth plugin seems to be few and far between); this migration naturally requires the ...
1
vote
0answers
31 views
How to log configuration changes in a sensible way?
In order to log simple configuration changes like a site-name change, contributed modules like contrib_log work fine.
It just diffs the changes files in active configuration and logs it.
But when ...
2
votes
2answers
388 views
How can I force changes to go to settings.local.php?
I have a settings.php file in git which has the logic to include settings.local.php already uncommented, with settings.local.php in .gitignore for security purposes.
I would like to be able to ...
1
vote
1answer
959 views
Config import constantly showing configs to import
Recently after doing a config import via drush (drush cim sync), the config files don't seem to import properly, as the files are listed after a supposed successful import.
(and doing a cex sync shows ...
0
votes
1answer
157 views
What is the difference in State API and Config API?
It is a bit confusing to understand the difference in State API and Config API in Drupal 8. I went through the documentation of both on drupal.org but it is not clear to me yet.
Do we define both ...
1
vote
1answer
20 views
Configuration syncronization not importing everything
I have a remote server which I initially setup with a default Drupal 8.7.7 install. I have since been building the site on my local development server and would now like to transfer the developments ...
0
votes
1answer
46 views
Building a non-config, programmatically-created, semi-dynamic, semi-manual menu
We have a custom entity called "Topic". With this entity, users can build topics and reference other content to "belong" to the topic. We also have a requirement where, whenever a user creates a topic,...
2
votes
1answer
466 views
Overriding system.site.uuid with an environment variable
I have a need to have separate sites behave as if they are clones of each other; that is, they each need to have the same site UUID.
Due to the environment I am operating in, I am unable to change ...
1
vote
1answer
479 views
How to check for differences in config
Is there any way to check for differences with config in Drush?
I checked the list of drush 8 config commands and I couldn't find anything.
The reason I need this is that I have a site that runs ...
0
votes
0answers
29 views
drush cex re-creates files in config/sync while they already exist in module config folder
Having a config split which says that the location/configuration of the split/module is located under /sites/all/modules/custom/module/config/optional
After it got imported with drush csim our_split ...
4
votes
1answer
1k views
Configuration changes that will not import?
I have some configuration that will not import. If I run drush config-import --preview I see the changes to be imported; I hit 'y' to import. When I run the same command, the changes are still there?
...
0
votes
1answer
589 views
All instances of block are not getting removed
This question is a continuation of this Block in Drupal 8, The second problem I am facing is that suppose I select block made for comment section and place it under Sidebar second section and ...
0
votes
0answers
25 views
Why doesn't Synchronize - Export - Full archive work in my production site?
On my production site, when I go to Synchronize - Export - Full archive (i.e. http://mysite/admin/config/development/configuration/full/export), I get a blank web page, nothing in my temp folder and ...
2
votes
1answer
60 views
How can I programmatically import configuration?
I try to import specific configuration. I use this :
$config_path = config_get_config_directory(CONFIG_SYNC_DIRECTORY);
$source = new FileStorage($config_path);
$config_storage = \Drupal::service('...
33
votes
6answers
11k views
How do I update the configuration of a module?
I'm building a custom module in Drupal 8. It includes some YAML config files.
As I develop I need to change and add to the config, e.g. to add another field onto my custom entity.
At present the ...
0
votes
0answers
60 views
The provided host name is not valid for this server even after updating settings.php
I'm running in to the error message
The provided host name is not valid for this server.
I found the previous solution here however even once updating my settings.php file I'm continuing the hit this ...
0
votes
1answer
864 views
Image styles with $settings['file_public_base_url']?
I deep dive in the settings.php file of Drupal 8.1 and try to configure $settings['file_public_base_url']and $settings['file_public_path'].
All media links are correctly rewritten, that works with ...
0
votes
1answer
898 views
How do I create a configuration sync folder?
I've inherited a Drupal 8 site but it has no config_HASH folder with it which means that the majority of admin paths throw an exception.
How do I generate a new configuration folder based on the ...
0
votes
1answer
408 views
How do I tell drush not to overwrite some configuration settings?
I tell drush this:
drush @live cim --skip-modules=system,swiftmailer
and drush replies with this:
Collection Config Operation
swiftmailer....
1
vote
2answers
874 views
Why is it possible to write any string in the hash salt
I have researched a bit, but I couldn't find a precise answer to why it's possible to write any string in $settings['hash_salt'].
For me it doesn't make sense that the site chashes if no hash salt ...
0
votes
1answer
29 views
Where do I put configuration files for testing?
Hopefully, this will be a simple question.
I am writing a kernel test for a class, called FooConfig, that reads from a configuration file. For the purpose of facilitating this test, I need a ...
0
votes
1answer
43 views
How to install and enable a default and admin theme in a Drupal 8 install profile with just YML (without using hook_install() or a .profile file)?
I want to avoid using hook_install() so I can install from configuration.
I'd like my install profile to use seven for the admin theme, and my custom theme rutherford for the default/main frontend ...
0
votes
1answer
713 views
Help with $base URL path in settings.php
Since I created my site (long time ago!) I have added content and changed many settings. My URL has always been www.domain.com/'drupalfolder'/(content)
I want to remove the drupal folder from the URL ...
0
votes
0answers
31 views
Default Paragraph Config Per Content Type
We're using a paragraph for the hero/header of our site. Within the paragraph are a number of different toggles to define various options for the hero.
I'd like to have it so that if the user is ...
1
vote
1answer
486 views
Conf_path is deprecated but what is its replacement?
Im upgrading a D7 module to D8 and it turns out conf_path() is deprecated but I cant find the replacement.
I found a github page that said use this
DrupalKernel::findSitePath(Request::...
0
votes
1answer
38 views
Where is the configuration actually saved in the system?
I am new to Drupal 8. I installed the Drupal webform module. I am able to export the configuration file but unable to figure out where the configuration is actually is saved in the Drupal system.
1
vote
0answers
30 views
Where to describe a State API variable?
We can describe the configuration variables in the *.schema.yml files but there is a place to describe the State API variables?
I searched in the Core for some State variables and I don't find a ...
0
votes
1answer
24 views
Error when trying to upload a Configuration Synchronization file
I want to create a local copy of a production website. I read that I could use Configuration Synchronization to copy some of the settings of the production website over to my local website. When I try ...
0
votes
1answer
791 views
Why when I do a configuration export does the config.tar.gz in tmp not get copied to the sync folder?
This happens when I use the UI and drush cex. The config.tar.gz is created in the tmp folder but nothing is created in the sync folder that I created in sites/default.
I have searched for similar ...
0
votes
1answer
560 views
where are menu item configurations stored?
In drupal 8, which file holds the information of the menu items? I do a config-export and do not see which file is changed when I change the menu items.
0
votes
2answers
37 views
How can I move a node type's configuration into a custom module?
I still a bit new to D8 and loving the new configuration management system that has replaced Features.
I am looking for the best technique for containing particular configurations in my custom ...
6
votes
1answer
929 views
Are configurations written and read directly to/from .yaml files or still to the database?
Background
Drupal 7 and previous versions have attracted criticism for Drupal web site admin configuration being stored in the MySQL database, the criticism being that being in a database means that ...
1
vote
1answer
63 views
Config split ignore dependencies
I'm using the config_split module to split configuration to an installation profile, that I use in multiple Drupal sites.
I have 2 sites using the same installation profile, both using the same ...